forked from jfiksel/mass_clone
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup-project.sh
30 lines (19 loc) · 937 Bytes
/
setup-project.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
cd python-script
python3 -m venv venv
. ./venv/bin/activate
# if not pip yet, install the follow and follow the instruction on iriversland 1.0 website
# easy_install --user pip
pip install -r requirements.txt && \
cp credentials_example.py credentials.py
cp settings_example.py settings_local.py
cp script-session/recommend-config.json script-session/local-config.json
echo "INFO: Done succesfuuly."
# https://stackoverflow.com/questions/226703/how-do-i-prompt-for-yes-no-cancel-input-in-a-linux-shell-script
# read -p "Please follow the dependency instructions in https://github.com/SI669-internal/mass_clone . Also, we will open the project folder in Finder for you. If this sounds good, hit enter to proceed." yn
# open .
# read -p "PROMPT: When you finished instructions setting up dependencies, hit enter." yn
# case $yn in
# [Yy]* ) python main.py;;
# [Nn]* ) return;;
# * ) python main.py;; # default
# esac