mirror of
https://github.com/wassname/ray.git
synced 2026-06-28 13:37:39 +08:00
be4beb19c1
* Pass DPYTHON_EXECUTABLE into cmake for arrow and for ray. * Add cython to setup.py install_requires. * Revert custom code for finding python in cmake. * Correctly find arrow on CentOS. * In cmake, don't find PythonLibs, just find PYTHON_INCLUDE_DIRS. * Fix typo. * Do not use boost shared libraries when building arrow. * Add six to the setup.py install_requires because it is needed by pyarrow. * Don't link numbuf against boost_system and boost_filesystem. * Compile boost when we are on Linux. * Make numbuf find the correct boost libraries. * Only use find_package Boost on Linux, suppress output when building boost. * Changes to wheel building scripts, install cython in mac script. * Compile flatbuffers ourselves on Linux and pass it in when compiling Arrow. * Clean up build_flatbuffers.sh and build_boost.sh scripts a little. * Install cython when building linux wheel.
30 lines
994 B
Bash
Executable File
30 lines
994 B
Bash
Executable File
#!/bin/bash
|
|
|
|
cat << EOF > "/usr/bin/nproc"
|
|
#!/bin/bash
|
|
echo 10
|
|
EOF
|
|
chmod +x /usr/bin/nproc
|
|
|
|
mkdir .whl
|
|
for PYTHON in cp27-cp27mu cp33-cp33m cp34-cp34m cp35-cp35m cp36-cp36m; do
|
|
# The -f flag is passed twice to also run git clean in the arrow subdirectory.
|
|
# The -d flag removes directories. The -x flag ignores the .gitignore file,
|
|
# and the -e flag ensures that we don't remove the .whl directory.
|
|
git clean -f -f -x -d -e .whl
|
|
pushd python
|
|
# Fix the numpy version because this will be the oldest numpy version we can
|
|
# support.
|
|
/opt/python/${PYTHON}/bin/pip install numpy==1.10.4 cython
|
|
PATH=/opt/python/${PYTHON}/bin:$PATH /opt/python/${PYTHON}/bin/python setup.py bdist_wheel
|
|
# In the future, run auditwheel here.
|
|
mv dist/*.whl ../.whl/
|
|
popd
|
|
done
|
|
|
|
# Rename the wheels so that they can be uploaded to PyPI. TODO(rkn): This is a
|
|
# hack, we should use auditwheel instead.
|
|
pushd .whl
|
|
find *.whl -exec bash -c 'mv $1 ${1//linux/manylinux1}' bash {} \;
|
|
popd
|