Build CS9 DIB IPA ramdisk with python 3.12
Change-Id: Id3da1c7bcd7aa68731eff4695e07e3f0f908a3d8
This commit is contained in:
@@ -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)"
|
||||
|
||||
|
@@ -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": {
|
||||
|
Reference in New Issue
Block a user