mirror of
https://github.com/wassname/ray.git
synced 2026-08-20 12:40:44 +08:00
switching from Cython to Python C API
This commit is contained in:
+2
-17
@@ -1,6 +1,7 @@
|
||||
import sys
|
||||
|
||||
from setuptools import setup, Extension, find_packages
|
||||
import setuptools
|
||||
from Cython.Build import cythonize
|
||||
|
||||
# because of relative paths, this must be run from inside orch/lib/orchpy/
|
||||
@@ -10,28 +11,12 @@ MACOSX = (sys.platform in ['darwin'])
|
||||
setup(
|
||||
name = "orchestra",
|
||||
version = "0.1.dev0",
|
||||
ext_modules = cythonize([
|
||||
Extension("orchpy/worker",
|
||||
include_dirs = ["../../src", "/usr/local/include/"],
|
||||
sources = ["orchpy/worker.pyx"],
|
||||
extra_link_args=["-Iorchpy -lorchlib"],
|
||||
language = "c++"),
|
||||
Extension("orchpy/unison",
|
||||
include_dirs = ["../../src/", "/usr/local/include/"],
|
||||
sources = ["orchpy/unison.pyx"],
|
||||
extra_link_args=["-Iorchpy -lorchlib"],
|
||||
language = "c++")],
|
||||
compiler_directives={'language_level': 2}), # switch to 3 for python 3
|
||||
use_2to3=True,
|
||||
packages=find_packages(),
|
||||
package_data = {
|
||||
'orchpy': ['liborchlib.dylib' if MACOSX else 'liborchlib.so',
|
||||
'orchpy': ['liborchpylib.dylib' if MACOSX else 'liborchpylib.so',
|
||||
'scheduler',
|
||||
'objstore']
|
||||
},
|
||||
zip_safe=False
|
||||
)
|
||||
|
||||
extension_mod = Extension("symphony", ["orchpy/symphony.cpp"], include_dirs=["../../build/generated/"])
|
||||
|
||||
setup(name = "symphony", ext_modules=[extension_mod])
|
||||
|
||||
Reference in New Issue
Block a user