Updates for virtualenv on debian bullseye

Change-Id: I67af2b17f59cc4d05c4fa217861992123da97758
This commit is contained in:
Joseph Tole 2022-03-15 16:20:14 -04:00
parent bfbccfb823
commit b5b3160ef1
No known key found for this signature in database
GPG Key ID: 7FD52FF273DFB076
4 changed files with 30 additions and 4 deletions

View File

@ -3,7 +3,15 @@ set -eux
manifest=$(get-pip-manifest os-apply-config)
virtualenv --setuptools $OS_APPLY_CONFIG_VENV_DIR
env | sort
if [[ "$DISTRO_NAME" == "debian" ]] && [[ "$DIB_RELEASE" == "stable" || "$DIB_RELEASE" == "bullseye" ]]
then
virtualenv $OS_APPLY_CONFIG_VENV_DIR
else
virtualenv --setuptools $OS_APPLY_CONFIG_VENV_DIR
fi
set +u
source $OS_APPLY_CONFIG_VENV_DIR/bin/activate
set -u

View File

@ -3,7 +3,13 @@ set -eux
manifest=$(get-pip-manifest os-collect-config)
virtualenv --setuptools $OS_COLLECT_CONFIG_VENV_DIR
if [[ "$DISTRO_NAME" == "debian" ]] && [[ "$DIB_RELEASE" == "stable" || "$DIB_RELEASE" == "bullseye" ]]
then
virtualenv $OS_COLLECT_CONFIG_VENV_DIR
else
virtualenv --setuptools $OS_COLLECT_CONFIG_VENV_DIR
fi
set +u
source $OS_COLLECT_CONFIG_VENV_DIR/bin/activate
set -u

View File

@ -3,7 +3,13 @@ set -ex
manifest=$(get-pip-manifest os-net-config)
virtualenv --setuptools $OS_NET_CONFIG_VENV_DIR
if [[ "$DISTRO_NAME" == "debian" ]] && [[ "$DIB_RELEASE" == "stable" || "$DIB_RELEASE" == "bullseye" ]]
then
virtualenv $OS_NET_CONFIG_VENV_DIR
else
virtualenv --setuptools $OS_NET_CONFIG_VENV_DIR
fi
set +u
source $OS_NET_CONFIG_VENV_DIR/bin/activate
set -u

View File

@ -8,7 +8,13 @@ manifest=$(get-pip-manifest os-refresh-config)
# pip and virtualenv is installed by the pip-and-virtualenv element
virtualenv --setuptools /opt/stack/venvs/os-refresh-config
if [[ "$DISTRO_NAME" == "debian" ]] && [[ "$DIB_RELEASE" == "stable" || "$DIB_RELEASE" == "bullseye" ]]
then
virtualenv /opt/stack/venvs/os-refresh-config
else
virtualenv --setuptools /opt/stack/venvs/os-refresh-config
fi
set +u
source /opt/stack/venvs/os-refresh-config/bin/activate
set -u