django-exalted/env.sh

28 lines
692 B
Bash
Raw Normal View History

2020-04-15 17:13:36 +01:00
#!/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 =="