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:
parent
9ce6de3dfc
commit
be9530ae16
@ -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
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user