From 4bdc91a2e92bd68ad3a5cd622e84caf7ee3d9008 Mon Sep 17 00:00:00 2001 From: tcaxle Date: Wed, 15 Apr 2020 17:20:46 +0100 Subject: [PATCH] env.sh finished and .gitignore updates --- .gitignore | 2 ++ env.sh | 14 +++++++------- 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/.gitignore b/.gitignore index e69de29..d15e234 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +env/ +activate diff --git a/env.sh b/env.sh index 5cfb46c..f5bdcc0 100755 --- a/env.sh +++ b/env.sh @@ -3,24 +3,24 @@ echo "== BEGIN ==" echo "== Upgrading pip ==" -pip install --user --upgrade pip +pip3.8 install --user --upgrade pip echo "== Installing virtualenv ==" -pip install --user virtualenv +pip3.8 install --user virtualenv echo "== Creating virtualenv 'env' ==" -virtualenv env +python3.8 -m 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 +pip3.8 install django +pip3.8 install psycopg2 # Needed for postgresql support +pip3.8 install django-polymorphic # Needed for polymorphic model support # (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 echo "** Please source activate (-> env/bin/activate) **"