1
0
forked from GitHub/gf-core
Files
gf-core/src/runtime/python/setup.py
hallgren 65b064fe82 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.
2014-06-18 16:09:46 +00:00

25 lines
753 B
Python

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',
version = '1.0',
description = 'A binding to the PGF engine',
author='Krasimir Angelov',
author_email='kr.angelov@gmail.com',
license='BSD',
ext_modules = [pgf_module])