copy all files when installing pyarrow (#2547)

This commit is contained in:
Philipp Moritz 2018-08-02 17:06:37 -07:00 committed by Robert Nishihara
parent 5e59cc6a20
commit d5dda1ebf2

View file

@ -77,12 +77,10 @@ class build_ext(_build_ext.build_ext):
# We also need to install pyarrow along with Ray, so make sure that the
# relevant non-Python pyarrow files get copied.
pyarrow_files = [
os.path.join("ray/pyarrow_files/pyarrow", filename)
for filename in os.listdir("./ray/pyarrow_files/pyarrow")
if not os.path.isdir(
os.path.join("ray/pyarrow_files/pyarrow", filename))
]
pyarrow_files = []
for (root, dirs, filenames) in os.walk("./ray/pyarrow_files/pyarrow"):
for name in filenames:
pyarrow_files.append(os.path.join(root, name))
files_to_include = ray_files + pyarrow_files