Skip to content

Commit

Permalink
Python 3 deploy.
Browse files Browse the repository at this point in the history
We can just use the venv module to create the virtualenv, rather than
needing an additional package installed.
  • Loading branch information
dracos committed May 13, 2022
1 parent 12a4e1d commit 6cd2baf
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
4 changes: 1 addition & 3 deletions conf/packages
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
postgresql-client
memcached
virtualenv
libapache2-mod-wsgi
python-dev
libapache2-mod-wsgi-py3
python3-dev
libgdal-dev
3 changes: 1 addition & 2 deletions conf/pre_deploy_actions.bash
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,12 @@ cd "$(dirname $BASH_SOURCE)"/..
PYTHONDONTWRITEBYTECODE=""

# create the virtual environment
virtualenv_args=""
virtualenv_dir='.venv'
virtualenv_activate="$virtualenv_dir/bin/activate"

if [ ! -f "$virtualenv_activate" ]
then
virtualenv $virtualenv_args $virtualenv_dir
python3 -m venv $virtualenv_dir
fi

source $virtualenv_activate
Expand Down

0 comments on commit 6cd2baf

Please sign in to comment.