setup.py 892 Bytes
Newer Older
Matthieu Dorier's avatar
Matthieu Dorier committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16
from distutils.core import setup
from distutils.extension import Extension
from distutils.sysconfig import get_config_vars
import os
import os.path
import sys

(opt,) = get_config_vars('OPT')
os.environ['OPT'] = " ".join(
		    flag for flag in opt.split() if flag != '-Wstrict-prototypes'
		)

pybake_server_module = Extension('_pybakeserver', ["pybake/src/server.cpp"],
		           libraries=['boost_python','margo','bake-server'],
			   include_dirs=['.'],
			   depends=[])
Matthieu Dorier's avatar
Matthieu Dorier committed
17 18 19 20 21

pybake_client_module = Extension('_pybakeclient', ["pybake/src/client.cpp"],
		           libraries=['boost_python','margo','bake-client'],
			   include_dirs=['.'],
			   depends=[])
Matthieu Dorier's avatar
Matthieu Dorier committed
22 23 24 25
setup(name='pybake',
      version='0.1',
      author='Matthieu Dorier',
      description="""Python binding for BAKE""",      
Matthieu Dorier's avatar
Matthieu Dorier committed
26
      ext_modules=[ pybake_server_module, pybake_client_module ],
Matthieu Dorier's avatar
Matthieu Dorier committed
27 28
      packages=['pybake']
     )