-
Notifications
You must be signed in to change notification settings - Fork 75
/
install.sh
executable file
·40 lines (32 loc) · 954 Bytes
/
install.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#!/bin/bash
set -e
MAKE_VENV=${1:-true}
SOURCE_VENV=${2:-true}
# Directory of this script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
if $MAKE_VENV; then
# Virtualenv w/ python3
export PYTHONPATH=/usr/bin/python3 # point to your python3
python3 -m pip install virtualenv
cd $DIR
python3 -m virtualenv venv
fi
if $SOURCE_VENV; then
cd $DIR
source venv/bin/activate
export PYTHONPATH=${DIR}/venv/bin/python/dist-packages
fi
# Install this pkg and its requirements
python -m pip install -e $DIR
# Install RVO and its requirements
cd $DIR/gym_collision_avoidance/envs/policies/Python-RVO2
python -m pip install Cython
if [[ "$OSTYPE" == "darwin"* ]]; then
export MACOSX_DEPLOYMENT_TARGET=10.15
brew install cmake || true
fi
python setup.py build
python setup.py install
# Install DRL Long's requirements
# python -m pip install torch torchvision
echo "Finished installing gym_collision_avoidance!"