mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-10-29 18:03:18 -06:00
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.
This commit is contained in:
1 parent
d92f65f186
commit
65b064fe82
2 files changed
+31
-7
No files matched your search
@@ -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',
|
||||
|
||||
Reference in new issue
Block a user