Hello community,

here is the log from the commit of package python-weave for openSUSE:Factory 
checked in at 2019-02-24 17:18:54
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-weave (Old)
 and      /work/SRC/openSUSE:Factory/.python-weave.new.28833 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-weave"

Sun Feb 24 17:18:54 2019 rev:5 rq:678039 version:0.16.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-weave/python-weave.changes        
2018-06-29 22:36:46.309982478 +0200
+++ /work/SRC/openSUSE:Factory/.python-weave.new.28833/python-weave.changes     
2019-02-24 17:18:54.676413028 +0100
@@ -1,0 +2,6 @@
+Thu Feb 14 11:33:23 UTC 2019 - Tomáš Chvátal <[email protected]>
+
+- Add patch to fix with numpy 1.16:
+  * numpy-16.patch
+
+-------------------------------------------------------------------

New:
----
  numpy-16.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-weave.spec ++++++
--- /var/tmp/diff_new_pack.rvHkRt/_old  2019-02-24 17:18:55.288412919 +0100
+++ /var/tmp/diff_new_pack.rvHkRt/_new  2019-02-24 17:18:55.288412919 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-weave
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 
@@ -29,6 +29,7 @@
 Group:          Development/Libraries/Python
 URL:            http://www.github.com/scipy/weave
 Source0:        
https://files.pythonhosted.org/packages/source/w/weave/weave-%{version}.tar.gz
+Patch0:         numpy-16.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module numpy-devel}
@@ -61,6 +62,7 @@
 
 %prep
 %setup -q -n weave-%{version}
+%patch0 -p1
 sed -i -e '1d' weave/setup.py
 
 %build

++++++ numpy-16.patch ++++++
>From 1c2e41d414cd3dce6b286009976e54e3f725cdb6 Mon Sep 17 00:00:00 2001
From: Marcel Stimberg <[email protected]>
Date: Tue, 5 Feb 2019 15:01:02 +0100
Subject: [PATCH] MAINT: Update _get_ndarray_c_version import for numpy 1.16

Closes gh-11
---
 weave/inline_tools.py | 8 ++++++--
 1 file changed, 6 insertions(+), 2 deletions(-)

diff --git a/weave/inline_tools.py b/weave/inline_tools.py
index 569467c..4390af1 100644
--- a/weave/inline_tools.py
+++ b/weave/inline_tools.py
@@ -7,8 +7,12 @@
 from . import ext_tools
 from . import catalog
 from . import common_info
-
-from numpy.core.multiarray import _get_ndarray_c_version
+try:
+    # numpy 1.16:
+    from numpy.core._multiarray_umath import _get_ndarray_c_version
+except ImportError:
+    # numpy < 1.16:
+    from numpy.core.multiarray import _get_ndarray_c_version
 ndarray_api_version = '/* NDARRAY API VERSION %x */' % 
(_get_ndarray_c_version(),)
 
 

Reply via email to