WIP bundled wheels in tests

This commit is contained in:
Miro Hrončok 2023-05-26 15:54:59 +02:00
commit 4f27517079

View file

@ -65,8 +65,11 @@ License: Python-2.0.1
%bcond_with rpmwheels
# If the rpmwheels condition is disabled, we use the bundled wheel packages
# from Python with the versions below.
# The test subpackage bundles setuptools/wheel wheel as well (and we keep them bundled)
# This needs to be manually updated when we update Python.
%global pip_version 23.1.2
%global setuptools_version 67.6.1
%global wheel_version 0.40.0
# Expensive optimizations (mainly, profile-guided optimizations)
%bcond_without optimizations
@ -546,6 +549,11 @@ Summary: The self-test suite for the main python3 package
Requires: %{pkgname} = %{version}-%{release}
Requires: %{pkgname}-libs%{?_isa} = %{version}-%{release}
Provides: bundled(python3dist(setuptools)) = %{setuptools_version}
Provides: bundled(python3dist(wheel)) = %{wheel_version}
License: Python-2.0.1 AND ...
%unversioned_obsoletes_of_python3_X_if_main test
%description -n %{pkgname}-test
@ -601,6 +609,11 @@ The debug runtime additionally supports debug builds of C-API extensions
%if %{with rpmwheels}
rm Lib/ensurepip/_bundled/pip-%{pip_version}-py3-none-any.whl
%endif
# Assert the version macros are set correctly.
# Arguably, this should be done in %%check,
# but `fedpkg peep` has a much faster feedback loop.
test -f Lib/test/setuptools-%{setuptools_version}-py3-none-any.whl
test -f Lib/test/wheel-%{wheel_version}-py3-none-any.whl
# Remove all exe files to ensure we are not shipping prebuilt binaries
# note that those are only used to create Microsoft Windows installers