Avoid choosing virtualenv when building PyPy from source
This commit is contained in:
parent
98878e5d12
commit
63c00d9989
@ -207,9 +207,13 @@ if [ -z "${PYENV_BOOTSTRAP_VERSION}" ]; then
|
||||
else
|
||||
for version in $(pyenv-versions --bare | sort -r); do
|
||||
if [[ "${version}" == "2.7"* ]]; then
|
||||
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
|
||||
if [ -n "$PYENV_BOOTSTRAP_VERSION" ]; then
|
||||
|
Loading…
x
Reference in New Issue
Block a user