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

Revision 34391, 0.5 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
3source ./devel.bash
4
5if [ ! -d "$GEXT_MARS_INSTALLED/virtualenv-python3" ] ; then
6    python3 -mvenv --python=python3 "$GEXT_MARS_INSTALLED/virtualenv-python3"
7else
8    echo "" >&2
9    echo "!!!!" >&2
10    echo "! VirtualEnv Python3 already exists: $GEXT_MARS_INSTALLED/virtualenv-python3" >&2
11    echo "!!!!" >&2
12    echo "" >&2
13    echo "" >&2
14fi
15
16echo "****"
17echo "* To activate this version of python, enter:"
18echo "*   source \"$GEXT_MARS_INSTALLED/virtualenv-python3/bin/activate\""
19echo "****"
20
21
Note: See TracBrowser for help on using the browser.