Skip to content
Snippets Groups Projects
Unverified Commit 86728415 authored by Mark Gibbs's avatar Mark Gibbs Committed by GitHub
Browse files

Upgrade make_env script to stop on error and also to allow selection of python version (#340)


Co-authored-by: default avatarMark Gibbs <mark@gibbs.consulting>
parent 3e279649
Branches
Tags
No related merge requests found
#!/usr/bin/env bash
#
# 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
#
virtualenv -p python3.6 env
# Stop on error, rather than continue and trash the environment
set -e
#
# Default to 3.6 but allow override
DEFAULT_PYTHON_VER=3.6
PYTHON_VER=${1:-$DEFAULT_PYTHON_VER}
#
virtualenv -p python${PYTHON_VER} env
#
source env/bin/activate
#
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment