From f69eedfe81ff8e55e15b52b98f354af65b53fd7a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Mon, 30 Jan 2023 20:29:45 +0100 Subject: [PATCH] Require Python 3.11 wheels when Python 3.11 is installed The pip and setuptools wheel are already pulled in by Python, but it is better to be explicit. The wheel wheel is not pulled in by Python, so we need to pull it explicitly. The Python 3.11 wheels are only needed to create Python 3.11 virtual environments, so the dependency is conditional on the python3.11 package. --- python-virtualenv.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python-virtualenv.spec b/python-virtualenv.spec index 0997297..9e0f5ca 100644 --- a/python-virtualenv.spec +++ b/python-virtualenv.spec @@ -67,6 +67,11 @@ Requires: %{python_wheel_pkg_prefix}-pip-wheel Requires: %{python_wheel_pkg_prefix}-setuptools-wheel Requires: %{python_wheel_pkg_prefix}-wheel-wheel +# For Python 3.11 +Requires: (python3.11-pip-wheel if python3.11) +Requires: (python3.11-setuptools-wheel if python3.11) +Requires: (python3.11-wheel-wheel if python3.11) + %description -n python3-virtualenv virtualenv is a tool to create isolated Python environments. virtualenv is a successor to workingenv, and an extension of virtual-python. It is @@ -143,6 +148,7 @@ rm -r tmp_path %changelog * Mon Jan 30 2023 Miro Hrončok - 20.17.1-2 - Use wheels from /usr/share/python3.11-wheels when creating Python 3.11 virtual environments +- Require Python 3.11 wheels when Python 3.11 is installed * Wed Dec 07 2022 Lumír Balhar - 20.17.1-1 - Update to 20.17.1 (rhbz#2151044)