public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Sandro Mani <manisandro@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/mingw-python-setuptools] rawhide: Add setuptools-is_mingw.patch
Date: Fri, 18 Sep 2026 10:08:17 GMT [thread overview]
Message-ID: <178972609766.1.3449465088971137630.rpms-mingw-python-setuptools-268866307969@fedoraproject.org> (raw)
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')
reply other threads:[~2026-09-18 10:08 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178972609766.1.3449465088971137630.rpms-mingw-python-setuptools-268866307969@fedoraproject.org \
--to=manisandro@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox