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-numpy] rawhide: Update to 2.5.2
Date: Fri, 18 Sep 2026 21:33:03 GMT	[thread overview]
Message-ID: <178976718362.1.6693222046015522799.rpms-mingw-numpy-1a8eb1b40080@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/mingw-numpy
Branch : rawhide
Commit : 1a8eb1b400806fb037a750cded177bca27e11dbe
Author : Sandro Mani <manisandro@gmail.com>
Date   : 2026-09-18T23:32:51+02:00
Stats  : +42/-17 in 6 file(s)
URL    : https://src.fedoraproject.org/rpms/mingw-numpy/c/1a8eb1b400806fb037a750cded177bca27e11dbe?branch=rawhide

Log:
Update to 2.5.2

---
diff --git a/.gitignore b/.gitignore
index a5ba06f..9f410db 100644
--- a/.gitignore
+++ b/.gitignore
@@ -55,3 +55,4 @@
 /numpy-2.4.3.tar.gz
 /numpy-2.4.4.tar.gz
 /numpy-2.4.6.tar.gz
+/numpy-2.5.2.tar.gz

diff --git a/mingw-numpy-endian.patch b/mingw-numpy-endian.patch
index ed9ee0e..8e0e205 100644
--- a/mingw-numpy-endian.patch
+++ b/mingw-numpy-endian.patch
@@ -1,7 +1,7 @@
-diff -rupN --no-dereference numpy-2.4.6/numpy/_core/meson.build numpy-2.4.6-new/numpy/_core/meson.build
---- numpy-2.4.6/numpy/_core/meson.build	2026-05-19 17:44:58.857566464 +0200
-+++ numpy-2.4.6-new/numpy/_core/meson.build	2026-05-19 17:44:58.863223386 +0200
-@@ -528,12 +528,13 @@ endif
+diff -rupN --no-dereference numpy-2.5.2/numpy/_core/meson.build numpy-2.5.2-new/numpy/_core/meson.build
+--- numpy-2.5.2/numpy/_core/meson.build	2026-08-21 09:57:01.554432352 +0200
++++ numpy-2.5.2-new/numpy/_core/meson.build	2026-08-21 09:57:01.558391928 +0200
+@@ -591,12 +591,13 @@ endif
  message(f'Long double format: @longdouble_format@')
  cdata.set10('HAVE_LDOUBLE_' + longdouble_format, true)
  

diff --git a/mingw-numpy-longdoubleformat.patch b/mingw-numpy-longdoubleformat.patch
index 665e7ec..c242306 100644
--- a/mingw-numpy-longdoubleformat.patch
+++ b/mingw-numpy-longdoubleformat.patch
@@ -1,15 +1,15 @@
-diff -rupN --no-dereference numpy-2.4.6/meson.options numpy-2.4.6-new/meson.options
---- numpy-2.4.6/meson.options	2026-05-18 23:24:13.000000000 +0200
-+++ numpy-2.4.6-new/meson.options	2026-05-19 17:44:58.395710387 +0200
-@@ -43,3 +43,4 @@ option('test-simd', type: 'array',
-         description: 'Specify a list of CPU features to be tested against NumPy SIMD interface')
+diff -rupN --no-dereference numpy-2.5.2/meson.options numpy-2.5.2-new/meson.options
+--- numpy-2.5.2/meson.options	2026-08-09 02:13:51.000000000 +0200
++++ numpy-2.5.2-new/meson.options	2026-08-21 09:57:01.153400969 +0200
+@@ -51,3 +51,4 @@ option('test-simd', type: 'array',
+        description: 'CPU SIMD feature sets to be tested by the NumPy SIMD test module')
  option('test-simd-args', type: 'string', value: '',
-         description: 'Extra args to be passed to the `_simd` module that is used for testing the NumPy SIMD interface')
+        description: 'Extra arguments passed to the internal `_simd` test module')
 +option('longdouble_format', type: 'string', value: '', description: 'The longdouble format string')
-diff -rupN --no-dereference numpy-2.4.6/numpy/_core/meson.build numpy-2.4.6-new/numpy/_core/meson.build
---- numpy-2.4.6/numpy/_core/meson.build	2026-05-18 23:24:13.000000000 +0200
-+++ numpy-2.4.6-new/numpy/_core/meson.build	2026-05-19 17:44:58.397023131 +0200
-@@ -439,7 +439,7 @@ endforeach
+diff -rupN --no-dereference numpy-2.5.2/numpy/_core/meson.build numpy-2.5.2-new/numpy/_core/meson.build
+--- numpy-2.5.2/numpy/_core/meson.build	2026-08-09 02:13:51.000000000 +0200
++++ numpy-2.5.2-new/numpy/_core/meson.build	2026-08-21 09:57:01.154270543 +0200
+@@ -502,7 +502,7 @@ endforeach
  # https://github.com/numpy/numpy/blob/eead09a3d02c09374942cdc787c0b5e4fe9e7472/numpy/core/setup_common.py#L264-L434
  # This port is in service of solving gh-23972
  # as well as https://github.com/mesonbuild/meson/issues/11068

diff --git a/mingw-numpy-pythonpath.patch b/mingw-numpy-pythonpath.patch
new file mode 100644
index 0000000..92b8e40
--- /dev/null
+++ b/mingw-numpy-pythonpath.patch
@@ -0,0 +1,19 @@
+diff -rupN numpy-2.5.2/numpy/_core/meson.build numpy-2.5.2-new/numpy/_core/meson.build
+--- numpy-2.5.2/numpy/_core/meson.build	2026-08-21 09:57:01.941426420 +0200
++++ numpy-2.5.2-new/numpy/_core/meson.build	2026-09-18 22:51:59.343996853 +0200
+@@ -705,13 +705,14 @@ codegen_files = [
+   'code_generators/numpy_api.py',
+   'code_generators/ufunc_docstrings.py',
+ ]
++PYTHONPATH = run_command(py, '-c', 'import os; print(os.environ.get("PYTHONPATH", ""))').stdout().strip()
+ codegen_env = {
+   # Explicitly set PYTHONPATH to avoid depending on the current working directory
+   # at build time, and on unsafe paths that may be prepended to sys.path and can be
+   # disabled by PYTHONSAFEPATH. See:
+   # [1] https://github.com/numpy/numpy/issues/24907
+   # [2] https://docs.python.org/3/library/sys.html#sys.path
+-  'PYTHONPATH': meson.current_source_dir(),
++  'PYTHONPATH': meson.current_source_dir() + ':' + PYTHONPATH,
+ }
+ 
+ src_umath_api_c = custom_target('__umath_generated',

diff --git a/mingw-numpy.spec b/mingw-numpy.spec
index 11b6142..e87da8e 100644
--- a/mingw-numpy.spec
+++ b/mingw-numpy.spec
@@ -7,8 +7,8 @@
 
 Name:          mingw-%{pypi_name}
 Summary:       MinGW Windows Python %{pypi_name} library
-Version:       2.4.6
-Release:       2%{?dist}
+Version:       2.5.2
+Release:       1%{?dist}
 
 # Everything is BSD except for class SafeEval in numpy/lib/utils.py which is Python
 License:       BSD-3-Clause AND Apache-2.0
@@ -19,6 +19,8 @@ Source0:       %{pypi_source}
 Patch0:        mingw-numpy-longdoubleformat.patch
 # Mingw does not have endian.h
 Patch1:        mingw-numpy-endian.patch
+# Don't clear the PYTHONPATH set by the mingw-python3 wrapper
+Patch2:        mingw-numpy-pythonpath.patch
 
 
 BuildRequires: gcc-c++
@@ -226,6 +228,9 @@ ln -s %{mingw64_python3_sitearch}/numpy/_core/include/numpy/ %{buildroot}%{mingw
 
 
 %changelog
+* Fri Aug 21 2026 Sandro Mani <manisandro@gmail.com> - 2.5.2-1
+- Update to 2.5.2
+
 * Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.4.6-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
 

diff --git a/sources b/sources
index d086e85..af96f96 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (numpy-2.4.6.tar.gz) = 6e78c61a54bb89e202b0365440cef8f5dc948ac94eb39dfcd5af56a1ddce96ba8c7b4cd9b9c474be5f7642e7ec56cdc8eb238eb1871238911b94f9a90e2720ca
+SHA512 (numpy-2.5.2.tar.gz) = 30d0581b90a88f80de49202e9dace7605363e66d1141229cc85a4aef5aad185de4d24820cb7ec8e8860b1e2c593b7795649675ef850d35ef3883b386b5381231

                 reply	other threads:[~2026-09-18 21:33 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=178976718362.1.6693222046015522799.rpms-mingw-numpy-1a8eb1b40080@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