mirror of
https://github.com/vale981/ray
synced 2025-03-08 19:41:38 -05:00

* Add setup.py and travis. * Add script to install dependencies for travis. * Put Arrow into thirdparty. * Add .gitmodules file. * Install boost dependencies. * Make tests verbose. * Build arrow and numbuf in setup.py. * Change build_ext to install. * Switch develop to install in pip. * Test * fix numbuf build and installation * make import numbuf work * fix documentation * fix tests * quotes
23 lines
838 B
Python
23 lines
838 B
Python
import subprocess
|
|
from setuptools import setup, find_packages, Extension
|
|
import setuptools.command.install as _install
|
|
|
|
# Because of relative paths, this must be run from inside numbuf/.
|
|
|
|
class install(_install.install):
|
|
def run(self):
|
|
subprocess.check_call(["./setup.sh"])
|
|
subprocess.check_call(["./build.sh"])
|
|
subprocess.check_call(["cp", "libnumbuf.so", "numbuf/"])
|
|
# 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()
|
|
|
|
setup(name="numbuf",
|
|
version="0.0.1",
|
|
packages=find_packages(),
|
|
package_data={"numbuf": ["libnumbuf.so"]},
|
|
cmdclass={"install": install},
|
|
include_package_data=True,
|
|
zip_safe=False)
|