mirror of
https://github.com/wassname/ray.git
synced 2026-07-15 11:25:40 +08:00
* 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.
28 lines
761 B
Bash
28 lines
761 B
Bash
#!/bin/bash
|
|
|
|
set -x
|
|
|
|
# Cause the script to exit if a single command fails.
|
|
set -e
|
|
|
|
TP_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
|
|
|
FLATBUFFERS_VERSION=1.7.1
|
|
|
|
# Download and compile flatbuffers if it isn't already present.
|
|
if [ ! -d $TP_DIR/flatbuffers ]; then
|
|
echo "building flatbuffers"
|
|
wget https://github.com/google/flatbuffers/archive/v$FLATBUFFERS_VERSION.tar.gz -O flatbuffers-$FLATBUFFERS_VERSION.tar.gz
|
|
tar xf flatbuffers-$FLATBUFFERS_VERSION.tar.gz
|
|
rm -rf flatbuffers-$FLATBUFFERS_VERSION.tar.gz
|
|
|
|
# Compile flatbuffers.
|
|
pushd flatbuffers-$FLATBUFFERS_VERSION
|
|
cmake -DCMAKE_CXX_FLAGS=-fPIC \
|
|
-DCMAKE_INSTALL_PREFIX:PATH=$TP_DIR/flatbuffers \
|
|
-DFLATBUFFERS_BUILD_TESTS=OFF
|
|
make -j5
|
|
make install
|
|
popd
|
|
fi
|