raysect / source

The main source repository for the Raysect project.
http://www.raysect.org
BSD 3-Clause "New" or "Revised" License
86 stars 23 forks source link

Limit numpy version to < 2 in install_requires and make another post release #433

Open vsnever opened 1 month ago

vsnever commented 1 month ago

Raysect's build requirements specify oldest-supported-numpy, which is 1.14, while install_requires sets the NumPy version to numpy>=1.14, which installs NumPy 2.0 in Python 3.9 and above. Since NumPy 2.0 and 1.x are not binary compatible, trying to run any Raysect code produces errors like this:

ValueError: numpy.dtype size changed, may indicate binary incompatibility. Expected 96 from C header, got 88 from PyObject

I propose to constrain the NumPy version to 1.x in setup.py and make another post release.