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
|
|
|
|
2016-10-31 17:08:03 -07:00
|
|
|
class install(_install.install):
|
|
|
|
def run(self):
|
|
|
|
subprocess.check_call(["../../build.sh"])
|
|
|
|
# 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
|
|
|
|
2016-10-31 17:08:03 -07:00
|
|
|
setup(name="ray",
|
|
|
|
version="0.0.1",
|
|
|
|
packages=find_packages(),
|
|
|
|
package_data={"common": ["thirdparty/redis-3.2.3/src/redis-server"],
|
|
|
|
"plasma": ["build/plasma_store",
|
|
|
|
"build/plasma_manager",
|
|
|
|
"build/plasma_client.so"],
|
|
|
|
"photon": ["build/photon_scheduler",
|
|
|
|
"libphoton.so"]},
|
|
|
|
cmdclass={"install": install},
|
2016-11-12 19:37:20 -08:00
|
|
|
install_requires=["numpy",
|
|
|
|
"funcsigs",
|
|
|
|
"colorama",
|
|
|
|
"psutil",
|
|
|
|
"redis",
|
|
|
|
"cloudpickle",
|
|
|
|
"numbuf==0.0.1"],
|
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")
|