- Fix build after numpy 1.24 API changes, add replace_numpy_object.patch - Explicitly add python3-py dependency, no longer pulled in by pytest - Replace broken python_compileall macro by correct compileall invocation (>= 3.9 only, skip with 3.8), make reproducible - Disable build on all architecture where char is unsigned OBS-URL: https://build.opensuse.org/request/show/1061712 OBS-URL: https://build.opensuse.org/package/show/science/lal?expand=0&rev=28
28 lines
964 B
Diff
28 lines
964 B
Diff
From e4269307540b77ffc015c7be54191cf3350c798b Mon Sep 17 00:00:00 2001
|
|
From: "duncan.macleod" <duncan.macleod@ligo.org>
|
|
Date: Tue, 10 Jan 2023 16:30:46 +0000
|
|
Subject: [PATCH] lal: replace numpy.object with builtin object
|
|
|
|
numpy.object was a deprecated alias to object, see
|
|
https://numpy.org/devdocs/release/1.20.0-notes.html#using-the-aliases-of-builtin-types-like-np-int-is-deprecated
|
|
---
|
|
lal/swig/SWIGTestLALPython.py | 2 +-
|
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
|
|
diff --git a/lal/swig/SWIGTestLALPython.py b/lal/swig/SWIGTestLALPython.py
|
|
index b634b2c3d7..661c6fecab 100644
|
|
--- a/swig/SWIGTestLALPython.py
|
|
+++ b/swig/SWIGTestLALPython.py
|
|
@@ -135,7 +135,7 @@ def test_string_conversions():
|
|
strs = ["a", "bc", "def"]
|
|
sv = lal.CreateStringVector(*strs)
|
|
assert sv.length == 3
|
|
-assert (sv.data.astype(numpy.object) == strs).all()
|
|
+assert (sv.data.astype(object) == strs).all()
|
|
strs[0] = "ghijk"
|
|
sv.data[0] = strs[0]
|
|
strs.append("lmnopq")
|
|
--
|
|
GitLab
|
|
|