dev-python/pip: Fix accidentally installing virtualenv w/ USE=test

Closes: https://bugs.gentoo.org/832402
Signed-off-by: Michał Górny <mgorny@gentoo.org>
This commit is contained in:
Michał Górny
2022-01-31 09:17:16 +01:00
parent 00ac452118
commit ce90f1cf81
2 changed files with 4 additions and 0 deletions

View File

@@ -113,6 +113,8 @@ python_test() {
pushd "${WORKDIR}/virtualenv-${VENV_PV}" >/dev/null || die
distutils_install_for_testing
popd >/dev/null || die
# prevent it from being installed
rm -r "${BUILD_DIR}"/lib/virtualenv* || die
local -x GENTOO_PIP_TESTING=1 \
PATH="${TEST_DIR}/scripts:${PATH}" \

View File

@@ -112,6 +112,8 @@ python_test() {
pushd "${WORKDIR}/virtualenv-${VENV_PV}" >/dev/null || die
distutils_install_for_testing
popd >/dev/null || die
# prevent it from being installed
rm -r "${BUILD_DIR}"/lib/virtualenv* || die
local -x GENTOO_PIP_TESTING=1 \
PATH="${TEST_DIR}/scripts:${PATH}" \