python-virtualenv.sh (automake-1.16.2.tar.xz) | : | python-virtualenv.sh (automake-1.16.3.tar.xz) | ||
---|---|---|---|---|
skipping to change at line 42 | skipping to change at line 42 | |||
# Activate the virtualenv. | # Activate the virtualenv. | |||
. ./virtenv/bin/activate | . ./virtenv/bin/activate | |||
# Sanity check. | # Sanity check. | |||
if test -z "$VIRTUAL_ENV"; then | if test -z "$VIRTUAL_ENV"; then | |||
framework_failure_ "can't activate python virtual environment" | framework_failure_ "can't activate python virtual environment" | |||
fi | fi | |||
py_version_post=$(python -V) | py_version_post=$(python -V) | |||
# Sanity check. | # Sanity check. | |||
test "$py_version_pre" = "$py_version_post" | test "$py_version_pre" = "$py_version_post" \ | |||
|| skip_ "virtualenv $py_version_post != $py_version_pre" | ||||
cwd=$(pwd) || fatal_ "getting current working directory" | cwd=$(pwd) || fatal_ "getting current working directory" | |||
py_version=$(python -c 'import sys; print("%u.%u" % tuple(sys.version_info[:2])) ') | py_version=$(python -c 'import sys; print("%u.%u" % tuple(sys.version_info[:2])) ') | |||
py_site=$VIRTUAL_ENV/lib/python$py_version/site-packages | py_site=$VIRTUAL_ENV/lib/python$py_version/site-packages | |||
# We need to do do this early, just to set some cache variables properly, | # We need to do do this early, just to set some cache variables properly, | |||
# since because we're going to unset $PYTHON next. | # since because we're going to unset $PYTHON next. | |||
if python_has_pep3147; then | if python_has_pep3147; then | |||
: PEP 3147 will be used in installation of ".pyc" files | : PEP 3147 will be used in installation of ".pyc" files | |||
fi | fi | |||
End of changes. 1 change blocks. | ||||
1 lines changed or deleted | 2 lines changed or added |