mirror of
https://github.com/wassname/ray.git
synced 2026-07-18 12:40:56 +08:00
22 lines
442 B
Bash
Executable File
22 lines
442 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
ROOT_DIR=$(cd "$(dirname "${BASH_SOURCE:-$0}")"; pwd)
|
|
|
|
platform="unknown"
|
|
unamestr="$(uname)"
|
|
if [[ "$unamestr" == "Linux" ]]; then
|
|
echo "Platform is linux."
|
|
platform="linux"
|
|
elif [[ "$unamestr" == "Darwin" ]]; then
|
|
echo "Platform is macosx."
|
|
platform="macosx"
|
|
else
|
|
echo "Unrecognized platform."
|
|
exit 1
|
|
fi
|
|
|
|
if [[ $platform == "linux" ]]; then
|
|
sudo apt-get update
|
|
sudo apt-get install -y git python-dev
|
|
fi
|