summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorhallgren <hallgren@chalmers.se>2014-06-18 16:09:46 +0000
committerhallgren <hallgren@chalmers.se>2014-06-18 16:09:46 +0000
commit65b064fe8232f0bf0ece2cbd1ca80c041be9c4a3 (patch)
tree894752551ef432b9e05ee925e9673a700e7dc9b5 /src
parentd92f65f186a5c93f6e08150385a6856f69a8cca5 (diff)
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.
Diffstat (limited to 'src')
-rw-r--r--src/runtime/python/setup.py10
1 files changed, 10 insertions, 0 deletions
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',