env script

This commit is contained in:
tcaxle 2020-04-15 17:13:36 +01:00
parent ba83175aff
commit ab1dc16fb4
2 changed files with 28 additions and 0 deletions

1
activate Symbolic link
View File

@ -0,0 +1 @@
env/bin/activate

27
env.sh Executable file
View File

@ -0,0 +1,27 @@
#!/bin/bash
echo "== BEGIN =="
echo "== Upgrading pip =="
pip install --user --upgrade pip
echo "== Installing virtualenv =="
pip install --user virtualenv
echo "== Creating virtualenv 'env' =="
virtualenv env
echo "== Activating virtualenv 'env' =="
source env/bin/activate
echo "== Installing requirements =="
pip install django
pip install psycopg2 # Needed for postgresql support
pip install django-polymorphic # Needed for polymorphic model support
# (allows querying of parent models to return children
echo "== Creating symbolic links =="
ln -s env/bin/activate activate
echo "** Please source activate (-> env/bin/activate) **"
echo "== END =="