We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e27964 commit 8672841Copy full SHA for 8672841
make_env
@@ -1,8 +1,15 @@
1
#!/usr/bin/env bash
2
#
3
-# Create a virtualenv. Note that python 3.6 is the minimal requirement
+# Create a virtualenv. Note that python 3.6 is currently the minimal requirement
4
5
-virtualenv -p python3.6 env
+# Stop on error, rather than continue and trash the environment
6
+set -e
7
+#
8
+# Default to 3.6 but allow override
9
+DEFAULT_PYTHON_VER=3.6
10
+PYTHON_VER=${1:-$DEFAULT_PYTHON_VER}
11
12
+virtualenv -p python${PYTHON_VER} env
13
14
source env/bin/activate
15
0 commit comments