[build] Using env var for data dir in geodata build script

This commit is contained in:
Al
2016-02-08 01:11:42 -05:00
parent aaad213a20
commit 393fd7e0f3

View File

@@ -52,6 +52,7 @@ def main():
] + ['geodata/text/pynormalize.c'],
include_dirs=[PROJECT_DIR],
extra_compile_args=['-std=gnu99', '-DHAVE_CONFIG_H',
'-DLIBPOSTAL_DATA_DIR="{}"'.format(os.getenv('LIBPOSTAL_DATA_DIR', os.path.realpath(os.path.join(PROJECT_DIR, 'data')))),
'-Wno-unused-function'],
),
],