mirror of
https://github.com/pyenv/pyenv.git
synced 2024-11-21 20:47:00 -05:00
Avoid choosing virtualenv when building PyPy from source
This commit is contained in:
parent
98878e5d12
commit
63c00d9989
1 changed files with 6 additions and 2 deletions
|
@ -207,8 +207,12 @@ if [ -z "${PYENV_BOOTSTRAP_VERSION}" ]; then
|
||||||
else
|
else
|
||||||
for version in $(pyenv-versions --bare | sort -r); do
|
for version in $(pyenv-versions --bare | sort -r); do
|
||||||
if [[ "${version}" == "2.7"* ]]; then
|
if [[ "${version}" == "2.7"* ]]; then
|
||||||
PYENV_BOOTSTRAP_VERSION="$version"
|
if [ -f "$(pyenv-prefix "${version}")/bin/activate" ]; then
|
||||||
break
|
: # avoid choosing virtualenv since it may not have some necessary modules (e.g. cffi, pycparser)
|
||||||
|
else
|
||||||
|
PYENV_BOOTSTRAP_VERSION="$version"
|
||||||
|
break
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue