env script
This commit is contained in:
parent
ba83175aff
commit
ab1dc16fb4
27
env.sh
Executable file
27
env.sh
Executable 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 =="
|
Loading…
Reference in New Issue
Block a user