summaryrefslogtreecommitdiff
path: root/src/runtime/python/setup.py
blob: 19459b41162ec18f86e23fde49d623fa8ff6460c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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])