Add explicit python version to virtualenv (#592)

The current build.sh file will attempt to use the default python version (in my case 3.6) instead of python2.7 which seems to be the required version due to the standard library having removed StringIO from python3.

Signed-off-by: Nicholas Johns <nicholas.a.johns5@gmail.com>
pull/594/head
Nicholas Johns 7 years ago committed by Matt Klein
parent 4e52bb6060
commit 8c5714f948
  1. 2
      docs/build.sh

@ -14,7 +14,7 @@ rm -rf "${GENERATED_RST_DIR}"
mkdir -p "${GENERATED_RST_DIR}"
if [ ! -d "${BUILD_DIR}"/venv ]; then
virtualenv "${BUILD_DIR}"/venv --no-site-packages
virtualenv "${BUILD_DIR}"/venv --no-site-packages --python=python2.7
"${BUILD_DIR}"/venv/bin/pip install -r "${SCRIPT_DIR}"/requirements.txt
fi

Loading…
Cancel
Save