Skip to content

Commit 8e4cb7f

Browse files
committed
Added a script to use virtualenv
1 parent 5a0f360 commit 8e4cb7f

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Diff for: dependencies.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
Flask
2+
beautifulsoup4
3+
requests

Diff for: setup_env.sh

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/bin/bash
2+
3+
venv=$(which virtualenv2 2> /dev/null || which virtualenv 2> /dev/null)
4+
if [[ -z $venv ]]
5+
then
6+
echo "No virtualenv found"
7+
exit 0
8+
fi
9+
10+
$venv env
11+
source ./env/bin/activate
12+
pip install -r dependencies.txt
13+
14+
echo "env created ok"
15+
echo ""
16+
echo ""
17+
echo "Run '. ./env/bin/activate' to activate your virtual environment"

0 commit comments

Comments
 (0)