Accepting request 861568 from home:mcalabkova:branches:devel:languages:python:Factory

- Update to 1.19.5
  * Fix memory leak of buffer-info cache due to relaxed strides
  * Set deprecated fields to null in PyArray_InitArrFuncs
  * fix np.timedelta64('nat').__format__ throwing an exception
  * more bugfixes
- Rebase numpy-buildfix.patch

OBS-URL: https://build.opensuse.org/request/show/861568
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:numeric/python-numpy?expand=0&rev=80
This commit is contained in:
Matej Cepl 2021-01-08 12:31:29 +00:00 committed by Git OBS Bridge
parent 2647c1b9cc
commit d36528b0ab
5 changed files with 28 additions and 15 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:0d310730e1e793527065ad7dde736197b705d0e4c9999775f212b03c44a8484c
size 7310530

3
numpy-1.19.5.zip Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:a76f502430dd98d7546e1ea2250a7360c065a5fdea52b2dffe8ae7180909b6f4
size 7318340

View File

@ -1,18 +1,21 @@
--- a/numpy/distutils/command/autodist.py
+++ b/numpy/distutils/command/autodist.py
@@ -50,7 +50,7 @@
"""Return True if the C compiler is GCC 4.x."""
Index: numpy-1.19.5/numpy/distutils/command/autodist.py
===================================================================
--- numpy-1.19.5.orig/numpy/distutils/command/autodist.py
+++ numpy-1.19.5/numpy/distutils/command/autodist.py
@@ -51,7 +51,7 @@ def check_compiler_gcc(cmd):
cmd._check_compiler()
body = textwrap.dedent("""
- int
+ void
main()
{
#if (! defined __GNUC__) || (__GNUC__ < 4)
--- a/numpy/distutils/command/install.py
+++ b/numpy/distutils/command/install.py
@@ -67,7 +67,7 @@
#if (! defined __GNUC__)
Index: numpy-1.19.5/numpy/distutils/command/install.py
===================================================================
--- numpy-1.19.5.orig/numpy/distutils/command/install.py
+++ numpy-1.19.5/numpy/distutils/command/install.py
@@ -67,7 +67,7 @@ class install(old_install):
need_rewrite = False
for l in f:
l = l.rstrip()

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Fri Jan 8 09:51:04 UTC 2021 - Markéta Machová <mmachova@suse.com>
- Update to 1.19.5
* Fix memory leak of buffer-info cache due to relaxed strides
* Set deprecated fields to null in PyArray_InitArrFuncs
* fix np.timedelta64('nat').__format__ throwing an exception
* more bugfixes
- Rebase numpy-buildfix.patch
-------------------------------------------------------------------
Sat Nov 28 16:08:40 UTC 2020 - Benjamin Greiner <code@bnavigator.de>

View File

@ -1,7 +1,7 @@
#
# spec file for package python-numpy
#
# Copyright (c) 2020 SUSE LLC
# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@ -17,8 +17,8 @@
%global flavor @BUILD_FLAVOR@%{nil}
%define ver 1.19.2
%define _ver 1_19_2
%define ver 1.19.5
%define _ver 1_19_5
%define pname python-numpy
%define hpc_upcase_trans_hyph() %(echo %{**} | tr [a-z] [A-Z] | tr '-' '_')
%if "%{flavor}" == ""