From c05c4a66bbcec89de43f9022868cc899f44900a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miro=20Hron=C4=8Dok?= Date: Thu, 20 Aug 2026 20:13:16 +0200 Subject: [PATCH] Allow flit-core 4 for building this package --- 09a03f6cfa.patch | 38 ++++++++++++++++++++++++++++++++++++++ python-pip.spec | 4 ++++ 2 files changed, 42 insertions(+) create mode 100644 09a03f6cfa.patch diff --git a/09a03f6cfa.patch b/09a03f6cfa.patch new file mode 100644 index 0000000..b6369a6 --- /dev/null +++ b/09a03f6cfa.patch @@ -0,0 +1,38 @@ +From 09a03f6cfaeecae8bf5774ae371d37c4369e2da4 Mon Sep 17 00:00:00 2001 +From: Damian Shaw +Date: Sat, 15 Aug 2026 13:36:05 -0400 +Subject: [PATCH] Allow flit-core 4 to build pip + +--- + pyproject.toml | 6 +++--- + 1 file changed, 3 insertions(+), 3 deletions(-) + +diff --git a/pyproject.toml b/pyproject.toml +index 48f64c8018..fe6b39913d 100644 +--- a/pyproject.toml ++++ b/pyproject.toml +@@ -45,13 +45,13 @@ Source = "https://github.com/pypa/pip" + Changelog = "https://pip.pypa.io/en/stable/news/" + + [build-system] +-requires = ["flit-core >=3.11,<4"] ++requires = ["flit-core >=3.11,<5"] + build-backend = "flit_core.buildapi" + + [dependency-groups] + test = [ + "cryptography", +- "flit-core >= 3.11, < 4", ++ "flit-core >= 3.11, < 5", + "freezegun", + "installer", + # pytest-subket requires 7.0+ +@@ -69,7 +69,7 @@ test = [ + ] + + test-common-wheels = [ +- "flit-core >= 3.11, < 4", ++ "flit-core >= 3.11, < 5", + # We pin setuptools<80 because our test suite currently + # depends on setup.py develop to generate egg-link files. + "setuptools >= 70.1.0, <80", diff --git a/python-pip.spec b/python-pip.spec index cf3940e..61fd6d1 100644 --- a/python-pip.spec +++ b/python-pip.spec @@ -107,6 +107,10 @@ Patch: https://github.com/pypa/pip/commit/6099a54ddd.patch # wrong installation. Patch: https://github.com/pypa/pip/commit/4c6d7471de.patch +# Allow flit-core 4 to build pip +# https://github.com/pypa/pip/commit/09a03f6cfa (non-existing files removed) +Patch: 09a03f6cfa.patch + # Remove -s from Python shebang - ensure that packages installed with pip # to user locations are seen by pip itself %undefine _py3_shebang_s