Skip to content

Commit 5c1eb0b

Browse files
author
Louis T. Getterman IV
committed
virtualenv support added
feature added, as required by ggcom-docker-py3nlp.
1 parent 51ab89d commit 5c1eb0b

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

pycompiler.bash

+10-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env bash
22
: <<'!COMMENT'
33
4-
GGCOM - Docker - pyenv v201508041108
4+
GGCOM - Docker - pyenv v201508130219
55
Louis T. Getterman IV (@LTGIV)
66
www.GotGetLLC.com | www.opensour.cc/ggcom/docker/pyenv
77
@@ -12,6 +12,7 @@ $] python --version
1212
!COMMENT
1313

1414
target=$(echo "$1" | tr -d '[[:space:]]')
15+
destination=${2-''}
1516
rexp='^TARGET\.[0-9][\.0-9]*$'
1617
pylist=$( pyenv install --list )
1718

@@ -43,5 +44,13 @@ echo "Installing Python $pyver, and setting as global Python interpreter:"
4344

4445
pyenv install $pyver
4546
pyenv global $pyver
47+
pip install --upgrade pip
4648

49+
if [ ! -z "$destination" ]; then
50+
pyenv virtualenv "$pyver" "$destination"
51+
pyenv global "$destination"
52+
pip install --upgrade pip
53+
fi
4754
unset pyver
55+
56+
pyenv rehash

0 commit comments

Comments
 (0)