Replaced pyvenv by -m venv

This commit is contained in:
Yamashita, Yuu
2016-07-16 06:50:50 +00:00
parent 99a90ab774
commit 8c7dd01954
13 changed files with 50 additions and 51 deletions

View File

@@ -33,7 +33,7 @@ for version in "${versions[@]}"; do
VIRTUALENV_PREFIX_PATH="${PYENV_PREFIX_PATH}"
else
if [ -f "${PYENV_ROOT}/versions/${version}/pyvenv.cfg" ]; then
# pyvenv
# venv
virtualenv_binpath="$(cut -b 1-1024 "${PYENV_ROOT}/versions/${version}/pyvenv.cfg" | sed -n '/^ *home *= */s///p' || true)"
VIRTUALENV_PREFIX_PATH="${virtualenv_binpath%/bin}"
else