public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/mingw-python-setuptools] rawhide: Rebuild (mingw-python-3.14)
@ 2026-09-23 16:49 Sandro Mani
0 siblings, 0 replies; 2+ messages in thread
From: Sandro Mani @ 2026-09-23 16:49 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mingw-python-setuptools
Branch : rawhide
Commit : 90a996885b6115540750be3bb62784aa885e9d21
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-09-23T18:48:11+02:00
Stats : +14/-5 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/mingw-python-setuptools/c/90a996885b6115540750be3bb62784aa885e9d21?branch=rawhide
Log:
Rebuild (mingw-python-3.14)
---
diff --git a/mingw-python-setuptools.spec b/mingw-python-setuptools.spec
index c2ced6f..d3721d3 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: 2%{?dist}
+Release: 3%{?dist}
BuildArch: noarch
License: MIT
@@ -17,6 +17,8 @@ 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
+# Keep .dll.a as shared_lib_extension
+Patch2: setuptools_shlibext.patch
BuildRequires: mingw32-filesystem
BuildRequires: mingw32-python3
@@ -61,10 +63,14 @@ find setuptools -name \*.py | xargs sed -i -e '1 {/^#!\//d}'
%install
-%{mingw32_py3_install_host}
-%{mingw64_py3_install_host}
-%{mingw32_py3_install}
-%{mingw64_py3_install}
+ln -fs build_mingw32_host build;
+%mingw32_python3_host setup.py install -O0 --skip-build --root %{buildroot}
+ln -fs build_mingw64_host build;
+%mingw64_python3_host setup.py install -O0 --skip-build --root %{buildroot}
+ln -fs build_mingw32 build;
+%mingw32_python3 setup.py install -O0 --skip-build --root %{buildroot}
+ln -fs build_mingw64 build;
+%mingw64_python3 setup.py install -O0 --skip-build --root %{buildroot}
find %{buildroot}%{mingw32_python3_sitearch}/ -name '*.exe' | xargs rm -f
find %{buildroot}%{mingw64_python3_sitearch}/ -name '*.exe' | xargs rm -f
@@ -94,6 +100,9 @@ find %{buildroot}%{mingw64_python3_sitearch}/ -name '*.exe' | xargs rm -f
%changelog
+* Tue Sep 22 2026 Sandro Mani <manisandro@gmail.com> - 84.0.0-3
+- Rebuild (mingw-python)
+
* Fri Sep 18 2026 Sandro Mani <manisandro@gmail.com> - 84.0.0-2
- Add setuptools-is_mingw.patch
^ permalink raw reply related [flat|nested] 2+ messages in thread* [rpms/mingw-python-setuptools] rawhide: Rebuild (mingw-python-3.14)
@ 2026-09-23 16:49 Sandro Mani
0 siblings, 0 replies; 2+ messages in thread
From: Sandro Mani @ 2026-09-23 16:49 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/mingw-python-setuptools
Branch : rawhide
Commit : cdd3837dce30dd6aad8936b5a5d1e442e44cdfef
Author : Sandro Mani <manisandro@gmail.com>
Date : 2026-09-23T18:49:27+02:00
Stats : +25/-0 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/mingw-python-setuptools/c/cdd3837dce30dd6aad8936b5a5d1e442e44cdfef?branch=rawhide
Log:
Rebuild (mingw-python-3.14)
---
diff --git a/mingw-python-setuptools.spec b/mingw-python-setuptools.spec
index d3721d3..3865549 100644
--- a/mingw-python-setuptools.spec
+++ b/mingw-python-setuptools.spec
@@ -63,6 +63,7 @@ find setuptools -name \*.py | xargs sed -i -e '1 {/^#!\//d}'
%install
+# Note: we need -O0 to avoid internal byte-compilation
ln -fs build_mingw32_host build;
%mingw32_python3_host setup.py install -O0 --skip-build --root %{buildroot}
ln -fs build_mingw64_host build;
diff --git a/setuptools_shlibext.patch b/setuptools_shlibext.patch
new file mode 100644
index 0000000..75395a4
--- /dev/null
+++ b/setuptools_shlibext.patch
@@ -0,0 +1,24 @@
+diff -rupN setuptools-84.0.0/setuptools/_distutils/compilers/C/unix.py setuptools-84.0.0-new/setuptools/_distutils/compilers/C/unix.py
+--- setuptools-84.0.0/setuptools/_distutils/compilers/C/unix.py 2026-08-08 20:27:34.817104300 +0200
++++ setuptools-84.0.0-new/setuptools/_distutils/compilers/C/unix.py 2026-09-23 18:01:39.207248030 +0200
+@@ -264,7 +264,8 @@ class Compiler(base.Compiler):
+ if 'RANLIB' in os.environ and self.executables.get('ranlib', None):
+ self.set_executables(ranlib=os.environ['RANLIB'])
+
+- self.shared_lib_extension = shlib_suffix # type: ignore[misc] # Assigning to ClassVar
++ # NOTE: SHLIB_SUFFIX is set to pyd, but we definitely want to keep dll.a as shared_lib_extension as is default for the UnixCCompiler!
++ # self.shared_lib_extension = shlib_suffix # type: ignore[misc] # Assigning to ClassVar
+
+ def _fix_lib_args(self, libraries, library_dirs, runtime_library_dirs):
+ """Remove standard library path from rpath"""
+diff -rupN setuptools-84.0.0/setuptools/_distutils/util.py setuptools-84.0.0-new/setuptools/_distutils/util.py
+--- setuptools-84.0.0/setuptools/_distutils/util.py 2026-08-08 20:27:34.820238400 +0200
++++ setuptools-84.0.0-new/setuptools/_distutils/util.py 2026-09-22 20:15:23.205933683 +0200
+@@ -328,6 +328,7 @@ def byte_compile( # noqa: C901
+ with script:
+ script.write(
+ """\
++import setuptools
+ from distutils.util import byte_compile
+ files = [
+ """
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-23 16:49 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-23 16:49 [rpms/mingw-python-setuptools] rawhide: Rebuild (mingw-python-3.14) Sandro Mani
2026-09-23 16:49 Sandro Mani
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox