Add bootstrap bcond for Python 3.8
This commit is contained in:
parent
5e25a87091
commit
ad7d856a30
@ -36,6 +36,17 @@ License: Python
|
|||||||
# WARNING: This does not change the package name and summary above
|
# WARNING: This does not change the package name and summary above
|
||||||
%bcond_without flatpackage
|
%bcond_without flatpackage
|
||||||
|
|
||||||
|
# When bootstrapping python3, we need to build setuptools.
|
||||||
|
# but setuptools BR python3-devel and that brings in python3-rpm-generators;
|
||||||
|
# python3-rpm-generators needs python3-setuptools, so we cannot have it yet.
|
||||||
|
#
|
||||||
|
# Procedure: https://fedoraproject.org/wiki/SIGs/Python/UpgradingPython
|
||||||
|
#
|
||||||
|
# IMPORTANT: When bootstrapping, it's very likely the wheels for pip and
|
||||||
|
# setuptools are not available. Turn off the rpmwheels bcond until
|
||||||
|
# the two packages are built with wheels to get around the issue.
|
||||||
|
%bcond_with bootstrap
|
||||||
|
|
||||||
# Whether to use RPM build wheels from the python-{pip,setuptools}-wheel package
|
# Whether to use RPM build wheels from the python-{pip,setuptools}-wheel package
|
||||||
# Uses upstream bundled prebuilt wheels otherwise
|
# Uses upstream bundled prebuilt wheels otherwise
|
||||||
%bcond_without rpmwheels
|
%bcond_without rpmwheels
|
||||||
@ -77,10 +88,6 @@ License: Python
|
|||||||
%endif
|
%endif
|
||||||
|
|
||||||
|
|
||||||
# Notes from bootstraping Python 3.7:
|
|
||||||
# https://fedoraproject.org/wiki/SIGs/Python/UpgradingPython
|
|
||||||
|
|
||||||
|
|
||||||
# =====================
|
# =====================
|
||||||
# General global macros
|
# General global macros
|
||||||
# =====================
|
# =====================
|
||||||
@ -396,8 +403,8 @@ Requires: %{name}-libs%{?_isa} = %{version}-%{release}
|
|||||||
BuildRequires: python-rpm-macros
|
BuildRequires: python-rpm-macros
|
||||||
Requires: python-rpm-macros
|
Requires: python-rpm-macros
|
||||||
Requires: python3-rpm-macros
|
Requires: python3-rpm-macros
|
||||||
Requires: python3-rpm-generators
|
|
||||||
|
|
||||||
|
%if %{without bootstrap}
|
||||||
# This is not "API" (packages that need setuptools should still BuildRequire it)
|
# This is not "API" (packages that need setuptools should still BuildRequire it)
|
||||||
# However some packages apparently can build both with and without setuptools
|
# However some packages apparently can build both with and without setuptools
|
||||||
# producing egg-info as file or directory (depending on setuptools presence).
|
# producing egg-info as file or directory (depending on setuptools presence).
|
||||||
@ -407,6 +414,9 @@ Requires: python3-rpm-generators
|
|||||||
# See https://fedoraproject.org/wiki/Packaging:Directory_Replacement
|
# See https://fedoraproject.org/wiki/Packaging:Directory_Replacement
|
||||||
Requires: python3-setuptools
|
Requires: python3-setuptools
|
||||||
|
|
||||||
|
Requires: python3-rpm-generators
|
||||||
|
%endif
|
||||||
|
|
||||||
Provides: %{name}-2to3 = %{version}-%{release}
|
Provides: %{name}-2to3 = %{version}-%{release}
|
||||||
Provides: 2to3 = %{version}-%{release}
|
Provides: 2to3 = %{version}-%{release}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user