Use venv module for PROJECT_VENV building
Currently, if USE_VENV=True, PROJECT_VENVs are initialized using the tools/build_venv.sh script; this script depends on the virtualenv module, which is much less commonly available than the built-in venv module which we already use many places. This changes the build_venv.sh script to use `python -m venv` instead. Needed-By: https://review.opendev.org/c/openstack/ironic/+/930776 Change-Id: I89fa2c0c4261e715064e77a766d98a34299532b3
This commit is contained in:
parent
13da42be4d
commit
2fdb729e04
@ -38,7 +38,7 @@ if [[ -z "$TOP_DIR" ]]; then
|
||||
fi
|
||||
|
||||
# Build new venv
|
||||
virtualenv $VENV_DEST
|
||||
python$PYTHON3_VERSION -m venv --system-site-packages $VENV_DEST
|
||||
|
||||
# Install modern pip
|
||||
PIP_VIRTUAL_ENV=$VENV_DEST pip_install -U pip
|
||||
|
Loading…
x
Reference in New Issue
Block a user