env.sh finished and .gitignore updates

This commit is contained in:
tcaxle 2020-04-15 17:20:46 +01:00
parent ab1dc16fb4
commit 4bdc91a2e9
2 changed files with 9 additions and 7 deletions

2
.gitignore vendored
View File

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

14
env.sh
View File

@ -3,24 +3,24 @@
echo "== BEGIN ==" echo "== BEGIN =="
echo "== Upgrading pip ==" echo "== Upgrading pip =="
pip install --user --upgrade pip pip3.8 install --user --upgrade pip
echo "== Installing virtualenv ==" echo "== Installing virtualenv =="
pip install --user virtualenv pip3.8 install --user virtualenv
echo "== Creating virtualenv 'env' ==" echo "== Creating virtualenv 'env' =="
virtualenv env python3.8 -m virtualenv env
echo "== Activating virtualenv 'env' ==" echo "== Activating virtualenv 'env' =="
source env/bin/activate source env/bin/activate
echo "== Installing requirements ==" echo "== Installing requirements =="
pip install django pip3.8 install django
pip install psycopg2 # Needed for postgresql support pip3.8 install psycopg2 # Needed for postgresql support
pip install django-polymorphic # Needed for polymorphic model support pip3.8 install django-polymorphic # Needed for polymorphic model support
# (allows querying of parent models to return children # (allows querying of parent models to return children
echo "== Creating symbolic links ==" echo "== Creating symbolic link activate -> env/bin/activate =="
ln -s env/bin/activate activate ln -s env/bin/activate activate
echo "** Please source activate (-> env/bin/activate) **" echo "** Please source activate (-> env/bin/activate) **"