From 5fd9dc7e2b52f703d1d400115bec247641c38360 Mon Sep 17 00:00:00 2001 From: Al Date: Sun, 17 Jan 2016 22:22:50 -0500 Subject: [PATCH] [scripts] relative dirs in setup.py for geodata --- scripts/setup.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/setup.py b/scripts/setup.py index c79f659a..9fcc5b47 100644 --- a/scripts/setup.py +++ b/scripts/setup.py @@ -2,8 +2,8 @@ import os from setuptools import setup, Extension, find_packages -this_dir = os.path.realpath(os.path.dirname(__file__)) -PROJECT_DIR = os.path.realpath(os.path.join(this_dir, os.pardir)) +this_dir = os.path.dirname(__file__) +PROJECT_DIR = os.path.join(this_dir, os.pardir) SRC_DIR = os.path.join(PROJECT_DIR, 'src') @@ -34,7 +34,7 @@ def main(): 'utf8proc/utf8proc.c', ) ] + ['geodata/text/pytokenize.c'], - include_dirs=[os.path.join(this_dir, os.pardir)], + include_dirs=[PROJECT_DIR], extra_compile_args=['-O0', '-std=c99', '-Wno-unused-function'], ), @@ -50,7 +50,7 @@ def main(): 'trie.c', 'trie_search.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', '-Wno-unused-function'], ),