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;}