mirror of
https://github.com/vale981/ray
synced 2025-03-14 07:06:38 -04: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
27 lines
634 B
Bash
Executable file
27 lines
634 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -x
|
|
set -e
|
|
|
|
TP_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
|
PREFIX=$TP_DIR/installed
|
|
|
|
# Determine how many parallel jobs to use for make based on the number of cores
|
|
unamestr="$(uname)"
|
|
if [[ "$unamestr" == "Linux" ]]; then
|
|
PARALLEL=$(nproc)
|
|
elif [[ "$unamestr" == "Darwin" ]]; then
|
|
PARALLEL=$(sysctl -n hw.ncpu)
|
|
echo "Platform is macosx."
|
|
else
|
|
echo "Unrecognized platform."
|
|
exit 1
|
|
fi
|
|
|
|
echo "building arrow"
|
|
cd $TP_DIR/arrow/cpp
|
|
source setup_build_env.sh
|
|
mkdir -p $TP_DIR/arrow/cpp/build
|
|
cd $TP_DIR/arrow/cpp/build
|
|
cmake -DLIBARROW_LINKAGE=STATIC -DCMAKE_BUILD_TYPE=Release ..
|
|
make VERBOSE=1 -j$PARALLEL
|