Build CS9 DIB IPA ramdisk with python 3.12

Change-Id: Id3da1c7bcd7aa68731eff4695e07e3f0f908a3d8
This commit is contained in:
Riccardo Pittau
2025-05-16 14:09:11 +02:00
parent 016b28f6e9
commit daf8da3a63
2 changed files with 14 additions and 7 deletions

View File

@@ -13,8 +13,15 @@ IPADIR=/tmp/ironic-python-agent
UPPER_CONSTRAINTS=/tmp/requirements/upper-constraints.txt
VENVDIR=/opt/ironic-python-agent
# define default python
PYTHON_BIN="python3"
if [[ "${DISTRO_NAME}${DIB_RELEASE}" =~ "centos9" ]]; then
PYTHON_BIN="python3.12"
fi
# create the virtual environment using the default python
python3 -m venv $VENVDIR
$PYTHON_BIN -m venv $VENVDIR
REQUIRED_PIP_STR="25.1.1"
REQUIRED_PIP_TUPLE="(25, 1, 1)"

View File

@@ -1,15 +1,15 @@
{
"release": {
"rhel": {
"7": {
"python": "python",
"python-dev": "python-devel"
"9": {
"python": "python3.12",
"python-dev": "python3.12-devel"
}
},
"centos": {
"7": {
"python": "python",
"python-dev": "python-devel"
"9-stream": {
"python": "python3.12",
"python-dev": "python3.12-devel"
}
},
"debian": {