forked from PersephonyAPI/javascript-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.sh
More file actions
executable file
·27 lines (23 loc) · 703 Bytes
/
setup.sh
File metadata and controls
executable file
·27 lines (23 loc) · 703 Bytes
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
which python3
if [ $? -ne 0 ];
then
echo "Python3 not found. You must install Python3 before continuing setup."
exit 1
fi
which virtualenv
if [ $? -ne 0 ];
then
echo "virtualenv not found. " +
"You must install virtualenv before continuing setup."
exit 1
fi
virtualenv_dir='venv'
# Create virtualenv
virtualenv -p python3 $virtualenv_dir
echo "To activate your virtual environment, run 'source ${virtualenv_dir}/bin/activate'"
# Install dependencies
echo "Installing dependencies"
source $virtualenv_dir/bin/activate
pip install -r requirements.txt
deactivate
echo "Dependencies installed. In order to activate your python virtual environment run 'source ${virtualenv_dir}/bin/activate'"