Use virtualenv --seeder=pip so that libs are accessible

New virtualenv will by default use a common location for seed libs like
setuptools, wheel, and pip. Unfortunately this breaks if root installs
the virtualenv and other users are expected to use it because these
other users cannot access /root/.local (where the files are stashed).

We fix this by using --seeder=pip which will install all of those libs
into the virtualenv itself.

Change-Id: I4922ea50e31dceda96f545a0d409c0d7dc022e19
This commit is contained in:
Clark Boylan 2020-02-11 08:41:49 -08:00
parent 9ce6de3dfc
commit be9530ae16
2 changed files with 3 additions and 2 deletions

View File

@ -22,5 +22,5 @@ if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
fi
set -e
$DIB_PYTHON_VIRTUALENV /usr/bindep-env
$DIB_PYTHON_VIRTUALENV --seeder=pip /usr/bindep-env
/usr/bindep-env/bin/pip install bindep

View File

@ -18,5 +18,6 @@ if [ ${DIB_DEBUG_TRACE:-0} -gt 0 ]; then
fi
set -e
$DIB_PYTHON_VIRTUALENV /usr/os-testr-env
# TODO is this used anymore?
$DIB_PYTHON_VIRTUALENV --seeder=pip /usr/os-testr-env
/usr/os-testr-env/bin/pip install os-testr