mirror of
https://github.com/wassname/ray.git
synced 2026-08-15 12:45:23 +08:00
install on mac osx
This commit is contained in:
+9
-3
@@ -1,19 +1,23 @@
|
||||
import sys
|
||||
|
||||
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/
|
||||
|
||||
MACOSX = (sys.platform in ['darwin'])
|
||||
|
||||
setup(
|
||||
name = "orchestra",
|
||||
version = "0.1.dev0",
|
||||
ext_modules = cythonize([
|
||||
Extension("orchpy/worker",
|
||||
include_dirs = ["../../src"],
|
||||
include_dirs = ["../../src", "/usr/local/include/"],
|
||||
sources = ["orchpy/worker.pyx"],
|
||||
extra_link_args=["-Iorchpy -lorchlib"],
|
||||
language = "c++"),
|
||||
Extension("orchpy/unison",
|
||||
include_dirs = ["../../src/"],
|
||||
include_dirs = ["../../src/", "/usr/local/include/"],
|
||||
sources = ["orchpy/unison.pyx"],
|
||||
extra_link_args=["-Iorchpy -lorchlib"],
|
||||
language = "c++")],
|
||||
@@ -21,7 +25,9 @@ setup(
|
||||
use_2to3=True,
|
||||
packages=find_packages(),
|
||||
package_data = {
|
||||
'orchpy': ['liborchlib.so', 'scheduler_server', 'objstore']
|
||||
'orchpy': ['liborchlib.dylib' if MACOSX else 'liborchlib.so',
|
||||
'scheduler_server',
|
||||
'objstore']
|
||||
},
|
||||
zip_safe=False
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user