setup.py 1.15 KB
Newer Older
Matthieu Dorier's avatar
Matthieu Dorier committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
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'],
15 16
                   include_dirs=['.'],
                   depends=[])
Matthieu Dorier's avatar
Matthieu Dorier committed
17 18 19

pybake_client_module = Extension('_pybakeclient', ["pybake/src/client.cpp"],
		           libraries=['boost_python','margo','bake-client'],
20 21 22 23 24 25 26 27
                   include_dirs=['.'],
                   depends=[])

pybake_target_module = Extension('_pybaketarget', ["pybake/src/target.cpp"],
                    libraries=['boost_python', 'uuid' ],
                    include_dirs=['.'],
                    depends=[])

Matthieu Dorier's avatar
Matthieu Dorier committed
28 29 30 31
setup(name='pybake',
      version='0.1',
      author='Matthieu Dorier',
      description="""Python binding for BAKE""",      
32
      ext_modules=[ pybake_server_module, pybake_client_module, pybake_target_module ],
Matthieu Dorier's avatar
Matthieu Dorier committed
33 34
      packages=['pybake']
     )