2016-12-11 12:25:31 -08:00
|
|
|
from __future__ import absolute_import
|
|
|
|
from __future__ import division
|
2016-11-12 19:37:20 -08:00
|
|
|
from __future__ import print_function
|
|
|
|
|
2016-10-31 17:08:03 -07:00
|
|
|
import subprocess
|
2016-02-22 17:35:03 -08:00
|
|
|
|
2016-10-31 17:08:03 -07:00
|
|
|
from setuptools import setup, find_packages
|
|
|
|
import setuptools.command.install as _install
|
2016-02-07 15:50:02 -08:00
|
|
|
|
2017-03-21 12:57:54 -07:00
|
|
|
|
2016-10-31 17:08:03 -07:00
|
|
|
class install(_install.install):
|
|
|
|
def run(self):
|
2017-01-17 16:56:40 -08:00
|
|
|
subprocess.check_call(["../build.sh"])
|
2016-10-31 17:08:03 -07:00
|
|
|
# Calling _install.install.run(self) does not fetch required packages and
|
|
|
|
# instead performs an old-style install. See command/install.py in
|
|
|
|
# setuptools. So, calling do_egg_install() manually here.
|
|
|
|
self.do_egg_install()
|
2016-02-07 15:50:02 -08:00
|
|
|
|
2017-03-21 12:57:54 -07:00
|
|
|
|
|
|
|
package_data = {
|
|
|
|
"ray": ["core/src/common/thirdparty/redis/src/redis-server",
|
|
|
|
"core/src/common/redis_module/libray_redis_module.so",
|
|
|
|
"core/src/plasma/plasma_store",
|
|
|
|
"core/src/plasma/plasma_manager",
|
|
|
|
"core/src/plasma/libplasma.so",
|
|
|
|
"core/src/local_scheduler/local_scheduler",
|
|
|
|
"core/src/local_scheduler/liblocal_scheduler_library.so",
|
|
|
|
"core/src/numbuf/libarrow.so",
|
|
|
|
"core/src/numbuf/libnumbuf.so",
|
|
|
|
"core/src/global_scheduler/global_scheduler"]
|
|
|
|
}
|
|
|
|
|
2016-10-31 17:08:03 -07:00
|
|
|
setup(name="ray",
|
|
|
|
version="0.0.1",
|
|
|
|
packages=find_packages(),
|
2017-03-21 12:57:54 -07:00
|
|
|
package_data=package_data,
|
2016-10-31 17:08:03 -07:00
|
|
|
cmdclass={"install": install},
|
2016-11-12 19:37:20 -08:00
|
|
|
install_requires=["numpy",
|
|
|
|
"funcsigs",
|
|
|
|
"colorama",
|
|
|
|
"psutil",
|
|
|
|
"redis",
|
2017-01-08 17:30:06 -08:00
|
|
|
"cloudpickle >= 0.2.2"],
|
2016-10-31 17:08:03 -07:00
|
|
|
include_package_data=True,
|
2016-11-12 19:37:20 -08:00
|
|
|
zip_safe=False,
|
|
|
|
license="Apache 2.0")
|