Skip to content

Commit

Permalink
Always recreate venv, preferring py3
Browse files Browse the repository at this point in the history
  • Loading branch information
joshmoore committed Nov 27, 2019
1 parent 8901081 commit 11c2b98
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions autogen_omero.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ test -e $WORKSPACE/OMERO.server
test -e $WORKSPACE/omero-install
test -e $WORKSPACE/omeroweb-install

if [ ! -e $WORKSPACE/venv ]; then
virtualenv $WORKSPACE/venv
$WORKSPACE/venv/bin/pip install -r $WORKSPACE/OMERO.server/share/web/requirements-py27.txt
$WORKSPACE/venv/bin/pip install future
if [ -e $WORKSPACE/venv ]; then
rm -rf $WORKSPACE/venv
fi
python3 -m venv --system-site-packages $WORKSPACE/venv || virtualenv --system-site-packages $WORKSPACE/venv
$WORKSPACE/venv/bin/pip install -r $WORKSPACE/OMERO.server/share/web/requirements-py27.txt
$WORKSPACE/venv/bin/pip install future
set +u # PS1 issue
. $WORKSPACE/venv/bin/activate
set -u
Expand Down

0 comments on commit 11c2b98

Please sign in to comment.