django-exalted/env.sh

28 lines
748 B
Bash
Raw Normal View History

2020-04-15 17:13:36 +01:00
#!/bin/bash
echo "== BEGIN =="
echo "== Upgrading pip =="
2020-04-15 17:20:46 +01:00
pip3.8 install --user --upgrade pip
2020-04-15 17:13:36 +01:00
echo "== Installing virtualenv =="
2020-04-15 17:20:46 +01:00
pip3.8 install --user virtualenv
2020-04-15 17:13:36 +01:00
echo "== Creating virtualenv 'env' =="
2020-04-15 17:20:46 +01:00
python3.8 -m virtualenv env
2020-04-15 17:13:36 +01:00
echo "== Activating virtualenv 'env' =="
source env/bin/activate
echo "== Installing requirements =="
2020-04-15 17:20:46 +01:00
pip3.8 install django
pip3.8 install psycopg2 # Needed for postgresql support
pip3.8 install django-polymorphic # Needed for polymorphic model support
2020-04-15 17:13:36 +01:00
# (allows querying of parent models to return children
2020-04-15 17:20:46 +01:00
echo "== Creating symbolic link activate -> env/bin/activate =="
2020-04-15 17:13:36 +01:00
ln -s env/bin/activate activate
echo "** Please source activate (-> env/bin/activate) **"
echo "== END =="