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',
|
2016-03-02 15:23:11 -08:00
|
|
|
'scheduler',
|
2016-02-22 17:35:03 -08:00
|
|
|
'objstore']
|
2016-02-10 12:12:19 -08:00
|
|
|
},
|
|
|
|
zip_safe=False
|
2016-02-07 15:50:02 -08:00
|
|
|
)
|
2016-03-05 15:11:39 -08:00
|
|
|
|
|
|
|
extension_mod = Extension("symphony", ["orchpy/symphony.cpp"], include_dirs=["../../build/generated/"])
|
|
|
|
|
|
|
|
setup(name = "symphony", ext_modules=[extension_mod])
|