Skip to content

Commit 39779ec

Browse files
committed
Specify to use python313 to build as this is the version required #340
Signed-off-by: Chin Yeung Li <[email protected]>
1 parent 0bd61e4 commit 39779ec

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

etc/scripts/build_rpm_docker.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -80,12 +80,12 @@ def build_rpm_with_docker():
8080
"-c",
8181
f"""set -ex
8282
# Install build dependencies
83-
dnf install -y rpm-build python3-devel python3-setuptools python3-wheel \\
84-
python3-build python3-pip python3-virtualenv curl gcc openldap-devel git
83+
dnf install -y rpm-build python3.13-devel python3.13-setuptools python3.13-wheel \\
84+
python3.13-build python3.13-pip python3.13-virtualenv curl gcc openldap-devel git
8585
8686
# Clean up and build wheel
8787
rm -rf build dist
88-
python3 -m build --wheel
88+
python3.13 -m build --wheel
8989
9090
# Get the wheel file name
9191
WHEEL_FILE=$(ls dist/*.whl)
@@ -134,11 +134,11 @@ def build_rpm_with_docker():
134134
Source2: $WHEEL_FILENAME
135135
136136
BuildArch: x86_64
137-
BuildRequires: python3-devel python3-virtualenv gcc openldap-devel git
137+
BuildRequires: python3.13-devel python3.13-virtualenv gcc openldap-devel git
138138
139139
# Runtime dependencies
140140
Requires: git
141-
Requires: python3
141+
Requires: python3.13
142142
Requires: postgresql
143143
Requires: postgresql-devel
144144
Requires: openldap
@@ -162,7 +162,7 @@ def build_rpm_with_docker():
162162
{
163163
project.get(
164164
"description",
165-
"Automate open source license complianceand ensure supply chain integrity",
165+
"Automate open source license compliance and ensure supply chain integrity",
166166
)
167167
}
168168
@@ -180,7 +180,7 @@ def build_rpm_with_docker():
180180
181181
# Create virtual environment in a temporary location first
182182
mkdir -p /tmp/venv_build
183-
python3 -m venv /tmp/venv_build --copies
183+
python3.13 -m venv /tmp/venv_build --copies
184184
185185
cd %{{_sourcedir}}
186186
/tmp/venv_build/bin/python -m pip install --upgrade pip

0 commit comments

Comments
 (0)