You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried to compile Boost::Python 1.84 library against numpy==2.0.0b1, but I'm getting a compilation error:
libs/python/src/numpy/dtype.cpp:101:83: error: no member named 'elsize' in '_PyArray_Descr'
int dtype::get_itemsize() const { return reinterpret_cast<PyArray_Descr*>(ptr())->elsize;}
While fixed now, it doesn't seem possible to build any prior Boost release if NumPy 2.x is installed. Is it possible to disable just the NumPy part when building via the central b2?
Activity
duburcqa commentedon Mar 15, 2024
See related part of numpy documentation: https://numpy.org/devdocs/release/2.0.0-notes.html#descriptor-elsize-and-alignment-access
The new accessor
PyDataType_ELSIZEmust be used:PyDataType_ELSIZE(reinterpret_cast<PyArray_Descr*>(ptr()))jakirkham commentedon May 7, 2024
Was this fixed with PR ( #432 )?
duburcqa commentedon May 7, 2024
Yes. Closing.
jakirkham commentedon May 7, 2024
Thanks Alexis! 🙏
Resolve Unit Test Failures
Resolve Unit Test Failures
[legacy] boost: Backport support for Numpy 2
[legacy] boost: Backport support for Numpy 2
[legacy] boost: Backport support for Numpy 2
[legacy] boost: Backport support for Numpy 2
[legacy] boost: Backport support for Numpy 2
jakobandersen commentedon Aug 19, 2024
While fixed now, it doesn't seem possible to build any prior Boost release if NumPy 2.x is installed. Is it possible to disable just the NumPy part when building via the central
b2?jakirkham commentedon Aug 19, 2024
Boost 1.86.0 got released just a few days ago. Did this not make it in there?
jakobandersen commentedon Aug 19, 2024
It doesn't look like it :-(
jakirkham commentedon Aug 19, 2024
@stefanseefeld what do we need to do to get this in the next Boost release? Is 1.86.1 an option?