From 3b9604c093b24c4c297ac322e41da57dca012279 Mon Sep 17 00:00:00 2001 From: Ivan Pozdeev Date: Thu, 13 Aug 2026 13:10:43 +0300 Subject: [PATCH] Add missing 3.10.x patches --- ...ognize-an-argument-to-j-in-MAKEFLAGS.patch | 27 +++++++++++++++++++ ...ognize-an-argument-to-j-in-MAKEFLAGS.patch | 27 +++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 plugins/python-build/share/python-build/patches/3.10.20/Python-3.10.20/0001-Recognize-an-argument-to-j-in-MAKEFLAGS.patch create mode 100644 plugins/python-build/share/python-build/patches/3.10.21/Python-3.10.21/0001-Recognize-an-argument-to-j-in-MAKEFLAGS.patch diff --git a/plugins/python-build/share/python-build/patches/3.10.20/Python-3.10.20/0001-Recognize-an-argument-to-j-in-MAKEFLAGS.patch b/plugins/python-build/share/python-build/patches/3.10.20/Python-3.10.20/0001-Recognize-an-argument-to-j-in-MAKEFLAGS.patch new file mode 100644 index 00000000..6da534e2 --- /dev/null +++ b/plugins/python-build/share/python-build/patches/3.10.20/Python-3.10.20/0001-Recognize-an-argument-to-j-in-MAKEFLAGS.patch @@ -0,0 +1,27 @@ +From 3fec519d6b326918f39ceb142ef762042ce8365f Mon Sep 17 00:00:00 2001 +From: Ivan Pozdeev +Date: Fri, 26 Dec 2025 13:39:21 +0300 +Subject: [PATCH] Recognize an argument to -j in MAKEFLAGS + +--- + setup.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index ad8fb81b218..5666deaf67b 100644 +--- a/setup.py ++++ b/setup.py +@@ -307,8 +307,8 @@ def __init__(self, dist): + self.failed_on_import = [] + self.missing = [] + self.disabled_configure = [] +- if '-j' in os.environ.get('MAKEFLAGS', ''): +- self.parallel = True ++ if (m:=re.search(r'(?:^|\s)(?:-j|--jobs)(?:\s+|=)?(\d*)',os.environ.get('MAKEFLAGS', ''))) is not None: ++ self.parallel = int(m.group(1)) if m.group(1) else True + + def add(self, ext): + self.extensions.append(ext) +-- +2.36.1.windows.1 + diff --git a/plugins/python-build/share/python-build/patches/3.10.21/Python-3.10.21/0001-Recognize-an-argument-to-j-in-MAKEFLAGS.patch b/plugins/python-build/share/python-build/patches/3.10.21/Python-3.10.21/0001-Recognize-an-argument-to-j-in-MAKEFLAGS.patch new file mode 100644 index 00000000..6da534e2 --- /dev/null +++ b/plugins/python-build/share/python-build/patches/3.10.21/Python-3.10.21/0001-Recognize-an-argument-to-j-in-MAKEFLAGS.patch @@ -0,0 +1,27 @@ +From 3fec519d6b326918f39ceb142ef762042ce8365f Mon Sep 17 00:00:00 2001 +From: Ivan Pozdeev +Date: Fri, 26 Dec 2025 13:39:21 +0300 +Subject: [PATCH] Recognize an argument to -j in MAKEFLAGS + +--- + setup.py | 4 ++-- + 1 file changed, 2 insertions(+), 2 deletions(-) + +diff --git a/setup.py b/setup.py +index ad8fb81b218..5666deaf67b 100644 +--- a/setup.py ++++ b/setup.py +@@ -307,8 +307,8 @@ def __init__(self, dist): + self.failed_on_import = [] + self.missing = [] + self.disabled_configure = [] +- if '-j' in os.environ.get('MAKEFLAGS', ''): +- self.parallel = True ++ if (m:=re.search(r'(?:^|\s)(?:-j|--jobs)(?:\s+|=)?(\d*)',os.environ.get('MAKEFLAGS', ''))) is not None: ++ self.parallel = int(m.group(1)) if m.group(1) else True + + def add(self, ext): + self.extensions.append(ext) +-- +2.36.1.windows.1 +