mirror of
https://github.com/pyenv/pyenv.git
synced 2025-11-10 04:23:47 -05:00
Avoid choosing virtualenv when building PyPy from source
This commit is contained in:
@@ -207,8 +207,12 @@ if [ -z "${PYENV_BOOTSTRAP_VERSION}" ]; then
|
||||
else
|
||||
for version in $(pyenv-versions --bare | sort -r); do
|
||||
if [[ "${version}" == "2.7"* ]]; then
|
||||
PYENV_BOOTSTRAP_VERSION="$version"
|
||||
break
|
||||
if [ -f "$(pyenv-prefix "${version}")/bin/activate" ]; then
|
||||
: # avoid choosing virtualenv since it may not have some necessary modules (e.g. cffi, pycparser)
|
||||
else
|
||||
PYENV_BOOTSTRAP_VERSION="$version"
|
||||
break
|
||||
fi
|
||||
fi
|
||||
done
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user