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

Revision 34391, 0.7 KB (checked in by davidb, 6 weeks ago)

More careful control over the creation of python venvs

  • Property svn:executable set to *
Line 
1#!/bin/bash
2
3# source ./devel.bash
4
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
12if [ ! -d "$GEXT_MARS_INSTALLED/virtualenv-python2" ] ; then
13    python devel/virtualenv-1.10/virtualenv.py --python=python2 $GEXT_MARS_INSTALLED/virtualenv-python2
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 browser.