ray/lib/orchpy/setup.py

34 lines
992 B
Python
Raw Normal View History

2016-02-22 17:35:03 -08:00
import sys
2016-02-07 15:50:02 -08:00
from setuptools import setup, Extension, find_packages
from Cython.Build import cythonize
# because of relative paths, this must be run from inside orch/lib/orchpy/
2016-02-22 17:35:03 -08:00
MACOSX = (sys.platform in ['darwin'])
2016-02-07 15:50:02 -08:00
setup(
name = "orchestra",
version = "0.1.dev0",
ext_modules = cythonize([
2016-02-10 12:12:19 -08:00
Extension("orchpy/worker",
2016-02-22 17:35:03 -08:00
include_dirs = ["../../src", "/usr/local/include/"],
2016-02-10 12:12:19 -08:00
sources = ["orchpy/worker.pyx"],
2016-02-22 13:55:06 -08:00
extra_link_args=["-Iorchpy -lorchlib"],
language = "c++"),
2016-02-10 12:12:19 -08:00
Extension("orchpy/unison",
2016-02-22 17:35:03 -08:00
include_dirs = ["../../src/", "/usr/local/include/"],
2016-02-10 12:12:19 -08:00
sources = ["orchpy/unison.pyx"],
extra_link_args=["-Iorchpy -lorchlib"],
language = "c++")],
compiler_directives={'language_level': 2}), # switch to 3 for python 3
2016-02-07 15:50:02 -08:00
use_2to3=True,
2016-02-10 12:12:19 -08:00
packages=find_packages(),
package_data = {
2016-02-22 17:35:03 -08:00
'orchpy': ['liborchlib.dylib' if MACOSX else 'liborchlib.so',
'scheduler_server',
'objstore']
2016-02-10 12:12:19 -08:00
},
zip_safe=False
2016-02-07 15:50:02 -08:00
)