python-setuptools: fix patch for 82.0.1
authorAlexandru Ardelean <redacted>
Fri, 3 Apr 2026 18:54:57 +0000 (21:54 +0300)
committerAlexandru Ardelean <redacted>
Sun, 5 Apr 2026 12:03:06 +0000 (15:03 +0300)
The 0001-distutils-use-python-sysroot.patch was written against an
older setuptools where the build_ext LIBDIR yield had less indentation.
In 82.0.1, a z/OS platform check wrapped the code adding an extra
indentation level. Regenerate the patch against the actual 82.0.1 source.

Signed-off-by: Alexandru Ardelean <redacted>
Signed-off-by: Alexandru Ardelean <redacted>
lang/python/python-setuptools/patches/0001-distutils-use-python-sysroot.patch

index 88b732f1251f369bfa875f51704e7537dd60b1ce..09e6ea547403fe36db5fe1d64dff71d738953b2c 100644 (file)
@@ -20,8 +20,6 @@ Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
  setuptools/_distutils/sysconfig.py         | 15 +++++++++++----
  2 files changed, 15 insertions(+), 5 deletions(-)
 
-diff --git a/setuptools/_distutils/command/build_ext.py b/setuptools/_distutils/command/build_ext.py
-index df623d7..068bc6b 100644
 --- a/setuptools/_distutils/command/build_ext.py
 +++ b/setuptools/_distutils/command/build_ext.py
 @@ -156,7 +156,10 @@ class build_ext(Command):
@@ -32,12 +30,10 @@ index df623d7..068bc6b 100644
 +            libdir = sysconfig.get_config_var('LIBDIR')
 +            if "_python_sysroot" in os.environ:
 +                libdir = os.environ.get("_python_sysroot") + libdir
-+            yield libdir 
++            yield libdir
  
      def finalize_options(self) -> None:  # noqa: C901
          from distutils import sysconfig
-diff --git a/setuptools/_distutils/sysconfig.py b/setuptools/_distutils/sysconfig.py
-index 7ddc869..7bd2fa9 100644
 --- a/setuptools/_distutils/sysconfig.py
 +++ b/setuptools/_distutils/sysconfig.py
 @@ -37,10 +37,17 @@ else:
git clone https://git.99rst.org/PROJECT