mirror of
https://github.com/wassname/ray.git
synced 2026-09-09 11:32:43 +08:00
Build Ray with setup.py. (#14)
* Build Ray with setup.py. * Building photon extensions with cmake. * Fix formatting in photon_extension.c * Pip install with sudo in Travis. * Fix plasma __init__.py. * Rename and remove some files.
This commit is contained in:
committed by
Philipp Moritz
parent
695f23b2e0
commit
47851eeccc
@@ -13,16 +13,36 @@ else
|
||||
exit 1
|
||||
fi
|
||||
|
||||
pushd "$ROOT_DIR/src/common"
|
||||
COMMON_DIR="$ROOT_DIR/src/common"
|
||||
PLASMA_DIR="$ROOT_DIR/src/plasma"
|
||||
PHOTON_DIR="$ROOT_DIR/src/photon"
|
||||
|
||||
PYTHON_DIR="$ROOT_DIR/lib/python"
|
||||
PYTHON_COMMON_DIR="$PYTHON_DIR/common"
|
||||
PYTHON_PLASMA_DIR="$PYTHON_DIR/plasma"
|
||||
PYTHON_PHOTON_DIR="$PYTHON_DIR/photon"
|
||||
|
||||
pushd "$COMMON_DIR"
|
||||
make
|
||||
make test
|
||||
popd
|
||||
cp "$COMMON_DIR/thirdparty/redis-3.2.3/src/redis-server" "$PYTHON_COMMON_DIR/thirdparty/redis-3.2.3/src/"
|
||||
|
||||
pushd "$ROOT_DIR/src/plasma"
|
||||
pushd "$PLASMA_DIR"
|
||||
make
|
||||
make test
|
||||
popd
|
||||
cp "$PLASMA_DIR/build/plasma_store" "$PYTHON_PLASMA_DIR/build/"
|
||||
cp "$PLASMA_DIR/build/plasma_manager" "$PYTHON_PLASMA_DIR/build/"
|
||||
cp "$PLASMA_DIR/build/plasma_client.so" "$PYTHON_PLASMA_DIR/build/"
|
||||
cp "$PLASMA_DIR/lib/python/plasma.py" "$PYTHON_PLASMA_DIR/lib/python/"
|
||||
|
||||
pushd "$ROOT_DIR/src/photon"
|
||||
pushd "$PHOTON_DIR"
|
||||
make
|
||||
pushd "$PHOTON_DIR/build"
|
||||
cmake ..
|
||||
make install
|
||||
popd
|
||||
popd
|
||||
cp "$PHOTON_DIR/build/photon_scheduler" "$PYTHON_PHOTON_DIR/build"
|
||||
cp "$PHOTON_DIR/photon/libphoton.so" "$PYTHON_PHOTON_DIR/"
|
||||
|
||||
Reference in New Issue
Block a user