Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 894689 Details for
Bug 932459
dev-libs/boost-1.85.0 USE="numpy" fails with error: ‘PyArray_Descr’ {aka ‘struct _PyArray_Descr’} has no member named ‘elsize’
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
https://github.com/boostorg/python/pull/432 with the path fixed
432.patch (text/plain), 1.04 KB, created by
Justin Keogh
on 2024-05-31 06:14:57 UTC
(
hide
)
Description:
https://github.com/boostorg/python/pull/432 with the path fixed
Filename:
MIME Type:
Creator:
Justin Keogh
Created:
2024-05-31 06:14:57 UTC
Size:
1.04 KB
patch
obsolete
>From 33ac06ca59a68266d3d26edf08205d31ddab4a6c Mon Sep 17 00:00:00 2001 >From: Alexis DUBURCQ <alexis.duburcq@gmail.com> >Date: Fri, 15 Mar 2024 14:10:16 +0100 >Subject: [PATCH] Support numpy 2.0.0b1 > >--- > src/numpy/dtype.cpp | 8 +++++++- > 1 file changed, 7 insertions(+), 1 deletion(-) > >diff --git a/libs/python/src/numpy/dtype.cpp b/libs/python/src/numpy/dtype.cpp >index 88a20a27b5..da30d1927b 100644 >--- a/libs/python/src/numpy/dtype.cpp >+++ b/libs/python/src/numpy/dtype.cpp >@@ -98,7 +98,13 @@ python::detail::new_reference dtype::convert(object const & arg, bool align) > return python::detail::new_reference(reinterpret_cast<PyObject*>(obj)); > } > >-int dtype::get_itemsize() const { return reinterpret_cast<PyArray_Descr*>(ptr())->elsize;} >+int dtype::get_itemsize() const { >+#if NPY_ABI_VERSION < 0x02000000 >+ return reinterpret_cast<PyArray_Descr*>(ptr())->elsize; >+#else >+ return PyDataType_ELSIZE(reinterpret_cast<PyArray_Descr*>(ptr())); >+#endif >+} > > bool equivalent(dtype const & a, dtype const & b) { > // On Windows x64, the behaviour described on
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 932459
: 894689