From 5fcd2313895cf473aa19ac16938309561fb65273 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Wed, 16 Nov 2022 17:48:22 +0100 Subject: [PATCH] Add minimal version limits on setuptools/pip wheels Fedora 37+ has setuptools 62.6+ and pip 22.2.2+ Fedora 36 is patched in: https://src.fedoraproject.org/rpms/python-setuptools/pull-request/86 https://src.fedoraproject.org/rpms/python-pip/pull-request/117 --- python3.12.spec | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/python3.12.spec b/python3.12.spec index 97b1379..17ab696 100644 --- a/python3.12.spec +++ b/python3.12.spec @@ -247,8 +247,10 @@ BuildRequires: /usr/bin/dtrace BuildRequires: /usr/sbin/ifconfig %if %{with rpmwheels} -BuildRequires: %{python_wheel_pkg_prefix}-setuptools-wheel -BuildRequires: %{python_wheel_pkg_prefix}-pip-wheel +# Newer versions in Fedora 37 support Python 3.12 +# Versions in Fedora 36 were patched to add the support, in the versions listed bellow +BuildRequires: %{python_wheel_pkg_prefix}-setuptools-wheel >= 59.6.0-3 +BuildRequires: %{python_wheel_pkg_prefix}-pip-wheel >= 21.3.1-4 %endif %if %{without bootstrap} @@ -446,8 +448,8 @@ This package contains /usr/bin/python - the "python" command that runs Python 3. Summary: Python runtime libraries %if %{with rpmwheels} -Requires: %{python_wheel_pkg_prefix}-setuptools-wheel -Requires: %{python_wheel_pkg_prefix}-pip-wheel +Requires: %{python_wheel_pkg_prefix}-setuptools-wheel >= 59.6.0-3 +Requires: %{python_wheel_pkg_prefix}-pip-wheel >= 21.3.1-4 %else Provides: bundled(python3dist(pip)) = %{pip_version} Provides: bundled(python3dist(setuptools)) = %{setuptools_version}