public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mingw-python-setuptools] rawhide: Add setuptools-is_mingw.patch
@ 2026-09-18 10:08 Sandro Mani
0 siblings, 0 replies; only message in thread
From: Sandro Mani @ 2026-09-18 10:08 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mingw-python-setuptools
Branch : rawhide
Commit : 268866307969688c2d34b00c4f5ac3f81018baeb
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-09-18T12:08:06+02:00
Stats : +16/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/mingw-python-setuptools/c/268866307969688c2d34b00c4f5ac3f81018baeb?branch=rawhide
Log:
Add setuptools-is_mingw.patch
---
diff --git a/mingw-python-setuptools.spec b/mingw-python-setuptools.spec
index 8233a27..c2ced6f 100644
--- a/mingw-python-setuptools.spec
+++ b/mingw-python-setuptools.spec
@@ -5,7 +5,7 @@
Name: mingw-python-%{pypi_name}
Summary: MinGW Windows Python %{pypi_name} library
Version: 84.0.0
-Release: 1%{?dist}
+Release: 2%{?dist}
BuildArch: noarch
License: MIT
@@ -14,6 +14,9 @@ Source0: %{pypi_source %{pypi_name} %{version}}
# Don't append -s to linker commandline
Patch0: mingw-python-setuptools_nostrip.patch
+# Adapt is_mingw detection
+# NOTE: when running mingw-python3, sys.platform will be 'linux'
+Patch1: setuptools-is_mingw.patch
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-python3
@@ -91,6 +94,9 @@ find %{buildroot}%{mingw64_python3_sitearch}/ -name '*.exe' | xargs rm -f
%changelog
+* Fri Sep 18 2026 Sandro Mani <manisandro@gmail.com> - 84.0.0-2
+- Add setuptools-is_mingw.patch
+
* Wed Aug 26 2026 Sandro Mani <manisandro@gmail.com> - 84.0.0-1
- Update to 84.0.0
diff --git a/setuptools-is_mingw.patch b/setuptools-is_mingw.patch
new file mode 100644
index 0000000..02999c3
--- /dev/null
+++ b/setuptools-is_mingw.patch
@@ -0,0 +1,9 @@
+diff -rupN setuptools-84.0.0/setuptools/_distutils/compilers/platform/detect.py setuptools-84.0.0-new/setuptools/_distutils/compilers/platform/detect.py
+--- setuptools-84.0.0/setuptools/_distutils/compilers/platform/detect.py 2026-08-08 20:27:34.817238300 +0200
++++ setuptools-84.0.0-new/setuptools/_distutils/compilers/platform/detect.py 2026-09-18 11:56:37.040507456 +0200
+@@ -37,4 +37,4 @@ def is_mingw() -> bool:
+ Python compiled with Mingw-w64 has ``sys.platform == 'win32'`` and
+ ``get_platform()`` starts with ``'mingw'``.
+ """
+- return sys.platform == 'win32' and get_platform().startswith('mingw')
++ return get_platform().startswith('mingw')
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-18 10:08 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-18 10:08 [rpms/mingw-python-setuptools] rawhide: Add setuptools-is_mingw.patch Sandro Mani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox