We install virtualenv module using apt package python3-virtualenv. The Ubuntu Jammy version of this package is not compatible with the Openstack 2025.1 (requirements/upper-constrains.txt:platformdirs===4.3.6). Venv module is part of the standard Python3 distribution since 3.3 and we don't need it to be compatible with Python2. Let's use it instead of virtualenv. Change-Id: Ic70af615ef42d69a4055998130487a5ed10d2232
19 lines
547 B
Bash
Executable File
19 lines
547 B
Bash
Executable File
#!/bin/bash
|
|
|
|
set -ex
|
|
|
|
PIP_CONSTRAINT=${PIP_CONSTRAINT}
|
|
SETUPTOOL_CONSTRAINT=${SETUPTOOL_CONSTRAINT}
|
|
WHEEL_CONSTRAIN=${WHEEL_CONSTRAIN}
|
|
|
|
# Create the virtualenv with the updated toolchain for openstack service
|
|
# for using python-rbd which is not pip installable and is only available
|
|
# in packaged form.
|
|
python3 -m venv --system-site-packages /var/lib/openstack
|
|
|
|
source /var/lib/openstack/bin/activate
|
|
|
|
pip install --upgrade pip${PIP_CONSTRAINT}
|
|
pip install --upgrade setuptools${SETUPTOOL_CONSTRAINT}
|
|
pip install --upgrade wheel${WHEEL_CONSTRAIN}
|