[scripts] relative dirs in setup.py for geodata
This commit is contained in:
@@ -2,8 +2,8 @@ import os
|
|||||||
|
|
||||||
from setuptools import setup, Extension, find_packages
|
from setuptools import setup, Extension, find_packages
|
||||||
|
|
||||||
this_dir = os.path.realpath(os.path.dirname(__file__))
|
this_dir = os.path.dirname(__file__)
|
||||||
PROJECT_DIR = os.path.realpath(os.path.join(this_dir, os.pardir))
|
PROJECT_DIR = os.path.join(this_dir, os.pardir)
|
||||||
SRC_DIR = os.path.join(PROJECT_DIR, 'src')
|
SRC_DIR = os.path.join(PROJECT_DIR, 'src')
|
||||||
|
|
||||||
|
|
||||||
@@ -34,7 +34,7 @@ def main():
|
|||||||
'utf8proc/utf8proc.c',
|
'utf8proc/utf8proc.c',
|
||||||
)
|
)
|
||||||
] + ['geodata/text/pytokenize.c'],
|
] + ['geodata/text/pytokenize.c'],
|
||||||
include_dirs=[os.path.join(this_dir, os.pardir)],
|
include_dirs=[PROJECT_DIR],
|
||||||
extra_compile_args=['-O0', '-std=c99',
|
extra_compile_args=['-O0', '-std=c99',
|
||||||
'-Wno-unused-function'],
|
'-Wno-unused-function'],
|
||||||
),
|
),
|
||||||
@@ -50,7 +50,7 @@ def main():
|
|||||||
'trie.c',
|
'trie.c',
|
||||||
'trie_search.c',)
|
'trie_search.c',)
|
||||||
] + ['geodata/text/pynormalize.c'],
|
] + ['geodata/text/pynormalize.c'],
|
||||||
include_dirs=[os.path.join(this_dir, os.pardir)],
|
include_dirs=[PROJECT_DIR],
|
||||||
extra_compile_args=['-std=c99', '-DHAVE_CONFIG_H',
|
extra_compile_args=['-std=c99', '-DHAVE_CONFIG_H',
|
||||||
'-Wno-unused-function'],
|
'-Wno-unused-function'],
|
||||||
),
|
),
|
||||||
|
|||||||
Reference in New Issue
Block a user