From 65b064fe8232f0bf0ece2cbd1ca80c041be9c4a3 Mon Sep 17 00:00:00 2001 From: hallgren Date: Wed, 18 Jun 2014 16:09:46 +0000 Subject: build-binary-dist.sh: updated to include the Python binding to the C run-time There are also some changes in src/runtime/python/setyp.py to support this. --- src/runtime/python/setup.py | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/runtime/python') diff --git a/src/runtime/python/setup.py b/src/runtime/python/setup.py index cac6f7409..19459b411 100644 --- a/src/runtime/python/setup.py +++ b/src/runtime/python/setup.py @@ -1,8 +1,18 @@ from distutils.core import setup, Extension +import os + +includes = os.getenv('EXTRA_INCLUDE_DIRS','').split(':') +if includes==['']: + includes=[] +libraries = os.getenv('EXTRA_LIB_DIRS','').split(':') +if libraries==['']: + libraries=[] pgf_module = Extension('pgf', sources = ['pypgf.c'], extra_compile_args = ['-std=c99'], + include_dirs = includes, + library_dirs = libraries, libraries = ['gu', 'pgf']) setup (name = 'pgf', -- cgit v1.2.3