mirror of
https://github.com/wassname/ray.git
synced 2026-09-10 12:38:43 +08:00
Rebase numbuf to latest arrow (#23)
* rebase to latest arrow * fix arrow linking * finish rebase * point arrow to pcmoritz's arrow * fix * fix macOS * fix
This commit is contained in:
committed by
Robert Nishihara
parent
c3db225cbe
commit
c3ab68e88c
@@ -1,6 +1,13 @@
|
||||
import subprocess
|
||||
from setuptools import setup, find_packages, Extension
|
||||
import setuptools.command.install as _install
|
||||
from sys import platform
|
||||
|
||||
extension = ""
|
||||
if platform == "linux" or platform == "linux2":
|
||||
extension = ".so"
|
||||
elif platform == "darwin":
|
||||
extension = ".dylib"
|
||||
|
||||
# Because of relative paths, this must be run from inside numbuf/.
|
||||
|
||||
@@ -8,7 +15,6 @@ 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.
|
||||
@@ -17,7 +23,7 @@ class install(_install.install):
|
||||
setup(name="numbuf",
|
||||
version="0.0.1",
|
||||
packages=find_packages(),
|
||||
package_data={"numbuf": ["libnumbuf.so"]},
|
||||
package_data={"numbuf": ["libnumbuf.so", "libarrow" + extension, "libarrow_io" + extension, "libarrow_ipc" + extension]},
|
||||
cmdclass={"install": install},
|
||||
setup_requires=["numpy"],
|
||||
include_package_data=True,
|
||||
|
||||
Reference in New Issue
Block a user