2016-11-12 19:37:20 -08:00
|
|
|
from __future__ import print_function
|
|
|
|
|
2016-11-17 22:33:29 -08:00
|
|
|
import os
|
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-11-17 22:33:29 -08:00
|
|
|
subprocess.check_call(["../../build-webui.sh"])
|
|
|
|
datafiles = [(root, [os.path.join(root, f) for f in files])
|
|
|
|
for root, dirs, files in os.walk("./webui")]
|
|
|
|
|
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(),
|
2016-11-21 15:02:40 -08:00
|
|
|
package_data={"common": ["thirdparty/redis/src/redis-server"],
|
2016-10-31 17:08:03 -07:00
|
|
|
"plasma": ["build/plasma_store",
|
|
|
|
"build/plasma_manager",
|
2016-11-13 16:23:28 -08:00
|
|
|
"lib/python/libplasma.so"],
|
2016-10-31 17:08:03 -07:00
|
|
|
"photon": ["build/photon_scheduler",
|
2016-11-18 19:57:51 -08:00
|
|
|
"photon/libphoton.so"],
|
|
|
|
"global_scheduler": ["build/global_scheduler"]},
|
2016-11-17 22:33:29 -08:00
|
|
|
data_files=datafiles,
|
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",
|
2016-11-21 14:30:17 -08:00
|
|
|
"cloudpickle"],
|
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")
|