[fix] pytokenize compilation on Ubuntu/gcc
This commit is contained in:
@@ -1,6 +1,6 @@
|
|||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
|
||||||
#include "scanner.h"
|
#include "src/scanner.h"
|
||||||
|
|
||||||
#if PY_MAJOR_VERSION >= 3
|
#if PY_MAJOR_VERSION >= 3
|
||||||
#define IS_PY3K
|
#define IS_PY3K
|
||||||
|
|||||||
2
setup.py
2
setup.py
@@ -21,7 +21,7 @@ def main():
|
|||||||
os.path.join(SRC_DIR, 'utf8proc/utf8proc.c'),
|
os.path.join(SRC_DIR, 'utf8proc/utf8proc.c'),
|
||||||
'python/postal/text/pytokenize.c',
|
'python/postal/text/pytokenize.c',
|
||||||
],
|
],
|
||||||
include_dirs=[SRC_DIR],
|
include_dirs=['.'],
|
||||||
extra_compile_args=['-O0'],
|
extra_compile_args=['-O0'],
|
||||||
),
|
),
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user