From 47793ab7b7ab8a73bb4a54d4abd7f266664dfd6d Mon Sep 17 00:00:00 2001 From: Charles Harris Date: Sun, 30 Jul 2023 13:06:14 -0600 Subject: [PATCH] REL: Prepare for the NumPy 1.25.2 release. - Create 1.25.2-changelog.rst - Update 1.25.2-notes.rst --- doc/changelog/1.25.2-changelog.rst | 45 ++++++++++++++++++++++++++++ doc/source/release/1.25.2-notes.rst | 46 +++++++++++++++++++++++++++-- numpy/core/setup.py | 9 ++++-- 3 files changed, 96 insertions(+), 4 deletions(-) create mode 100644 doc/changelog/1.25.2-changelog.rst diff --git a/doc/changelog/1.25.2-changelog.rst b/doc/changelog/1.25.2-changelog.rst new file mode 100644 index 000000000000..cd5b7f2e83e2 --- /dev/null +++ b/doc/changelog/1.25.2-changelog.rst @@ -0,0 +1,45 @@ + +Contributors +============ + +A total of 13 people contributed to this release. People with a "+" by their +names contributed a patch for the first time. + +* Aaron Meurer +* Andrew Nelson +* Charles Harris +* Kevin Sheppard +* Matti Picus +* Nathan Goldbaum +* Peter Hawkins +* Ralf Gommers +* Randy Eckenrode + +* Sam James + +* Sebastian Berg +* Tyler Reddy +* dependabot[bot] + +Pull requests merged +==================== + +A total of 19 pull requests were merged for this release. + +* `#24148 `__: MAINT: prepare 1.25.x for further development +* `#24174 `__: ENH: Improve clang-cl compliance +* `#24179 `__: MAINT: Upgrade various build dependencies. +* `#24182 `__: BLD: use ``-ftrapping-math`` with Clang on macOS +* `#24183 `__: BUG: properly handle negative indexes in ufunc_at fast path +* `#24184 `__: BUG: PyObject_IsTrue and PyObject_Not error handling in setflags +* `#24185 `__: BUG: histogram small range robust +* `#24186 `__: MAINT: Update meson.build files from main branch +* `#24234 `__: MAINT: exclude min, max and round from ``np.__all__`` +* `#24241 `__: MAINT: Dependabot updates +* `#24242 `__: BUG: Fix the signature for np.array_api.take +* `#24243 `__: BLD: update OpenBLAS to an intermeidate commit +* `#24244 `__: BUG: Fix reference count leak in str(scalar). +* `#24245 `__: BUG: fix invalid function pointer conversion error +* `#24255 `__: BUG: Factor out slow ``getenv`` call used for memory policy warning +* `#24292 `__: CI: correct URL in cirrus.star [skip cirrus] +* `#24293 `__: BUG: Fix C types in scalartypes +* `#24294 `__: BUG: do not modify the input to ufunc_at +* `#24295 `__: BUG: Further fixes to indexing loop and added tests diff --git a/doc/source/release/1.25.2-notes.rst b/doc/source/release/1.25.2-notes.rst index 8bc62b0eb9c4..f4f2606b710d 100644 --- a/doc/source/release/1.25.2-notes.rst +++ b/doc/source/release/1.25.2-notes.rst @@ -3,12 +3,54 @@ ========================== NumPy 1.25.2 Release Notes ========================== -NumPy 1.25.2 is a maintenance release that fixes bugs and regressions discovered after the -1.25.1 release. The Python versions supported by this release are 3.9-3.11. +NumPy 1.25.2 is a maintenance release that fixes bugs and regressions +discovered after the 1.25.1 release. This is the last planned release in the +1.25.x series, the next release will be 1.26.0, which will use the meson build +system and support Python 3.12. The Python versions supported by this release +are 3.9-3.11. Contributors ============ +A total of 13 people contributed to this release. People with a "+" by their +names contributed a patch for the first time. + +* Aaron Meurer +* Andrew Nelson +* Charles Harris +* Kevin Sheppard +* Matti Picus +* Nathan Goldbaum +* Peter Hawkins +* Ralf Gommers +* Randy Eckenrode + +* Sam James + +* Sebastian Berg +* Tyler Reddy +* dependabot[bot] + Pull requests merged ==================== +A total of 19 pull requests were merged for this release. + +* `#24148 `__: MAINT: prepare 1.25.x for further development +* `#24174 `__: ENH: Improve clang-cl compliance +* `#24179 `__: MAINT: Upgrade various build dependencies. +* `#24182 `__: BLD: use ``-ftrapping-math`` with Clang on macOS +* `#24183 `__: BUG: properly handle negative indexes in ufunc_at fast path +* `#24184 `__: BUG: PyObject_IsTrue and PyObject_Not error handling in setflags +* `#24185 `__: BUG: histogram small range robust +* `#24186 `__: MAINT: Update meson.build files from main branch +* `#24234 `__: MAINT: exclude min, max and round from ``np.__all__`` +* `#24241 `__: MAINT: Dependabot updates +* `#24242 `__: BUG: Fix the signature for np.array_api.take +* `#24243 `__: BLD: update OpenBLAS to an intermeidate commit +* `#24244 `__: BUG: Fix reference count leak in str(scalar). +* `#24245 `__: BUG: fix invalid function pointer conversion error +* `#24255 `__: BUG: Factor out slow ``getenv`` call used for memory policy warning +* `#24292 `__: CI: correct URL in cirrus.star [skip cirrus] +* `#24293 `__: BUG: Fix C types in scalartypes +* `#24294 `__: BUG: do not modify the input to ufunc_at +* `#24295 `__: BUG: Further fixes to indexing loop and added tests + diff --git a/numpy/core/setup.py b/numpy/core/setup.py index 571320ceb253..c6cdd4025966 100644 --- a/numpy/core/setup.py +++ b/numpy/core/setup.py @@ -83,8 +83,13 @@ def can_link_svml_fp16(): """SVML FP16 requires binutils >= 2.38 for an updated assembler """ if can_link_svml(): - binutils_ver = os.popen("ld -v").readlines()[0].strip()[-4:] - return float(binutils_ver) >= 2.38 + import re + binutils_ver = os.popen("ld -v").readlines()[0].strip() + binutils_ver = re.search(r"\d\.\d\d", binutils_ver) + if binutils_ver is not None: + return float(binutils_ver.group()) >= 2.38 + else: + return False def check_git_submodules(): out = os.popen("git submodule status")