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
|
UPPER_CONSTRAINTS=/tmp/requirements/upper-constraints.txt
|
||||||
VENVDIR=/opt/ironic-python-agent
|
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
|
# 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_STR="25.1.1"
|
||||||
REQUIRED_PIP_TUPLE="(25, 1, 1)"
|
REQUIRED_PIP_TUPLE="(25, 1, 1)"
|
||||||
|
|
||||||
|
@@ -1,15 +1,15 @@
|
|||||||
{
|
{
|
||||||
"release": {
|
"release": {
|
||||||
"rhel": {
|
"rhel": {
|
||||||
"7": {
|
"9": {
|
||||||
"python": "python",
|
"python": "python3.12",
|
||||||
"python-dev": "python-devel"
|
"python-dev": "python3.12-devel"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"centos": {
|
"centos": {
|
||||||
"7": {
|
"9-stream": {
|
||||||
"python": "python",
|
"python": "python3.12",
|
||||||
"python-dev": "python-devel"
|
"python-dev": "python3.12-devel"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"debian": {
|
"debian": {
|
||||||
|
Reference in New Issue
Block a user