source: gs3-extensions/mars-src/trunk/CREATE-VENV-PYTHON2.sh@ 34391

Last change on this file since 34391 was 34391, checked in by davidb, 4 years ago

More careful control over the creation of python venvs

  • Property svn:executable set to *
File size: 706 bytes
RevLine 
[34349]1#!/bin/bash
2
[34391]3# source ./devel.bash
[34349]4
[34391]5source ./setup.bash
6
7if [ ! -d "devel/virtualenv-1.10" ] ; then
8 echo "Untarring dev/virtualenv-1.10.tar.gz"
9 cd "devel" && tar xvzf "virtualenv-1.10.tar.gz" && cd ..
10fi
11
[34349]12if [ ! -d "$GEXT_MARS_INSTALLED/virtualenv-python2" ] ; then
[34391]13 python devel/virtualenv-1.10/virtualenv.py --python=python2 $GEXT_MARS_INSTALLED/virtualenv-python2
[34349]14else
15 echo "" >&2
16 echo "!!!!" >&2
17 echo "! VirtualEnv Python2 already exists: $GEXT_MARS_INSTALLED/virtualenv-python2" >&2
18 echo "!!!!" >&2
19 echo "" >&2
20fi
21
22echo "****"
23echo "* To activate this version of python, enter:"
24echo "* source \"$GEXT_MARS_INSTALLED/virtualenv-python2/bin/activate\""
25echo "****"
26
27
Note: See TracBrowser for help on using the repository browser.