sandialabs / pyapprox

Flexible and efficient tools for high-dimensional approximation, scientific machine learning and uncertainty quantification.
https://sandialabs.github.io/pyapprox/
MIT License
50 stars 13 forks source link

Build errors with numpy>=2.0.0 #25

Open cgcgcg opened 1 week ago

cgcgcg commented 1 week ago

The installation of PyApprox fails in cythonize:

      Error compiling Cython file:
      ------------------------------------------------------------
      ...
      cimport numpy as np
      import numpy as np

      ctypedef np.double_t double_t
      ctypedef np.int_t int_t
               ^
      ------------------------------------------------------------

      pyapprox/cython/barycentric_interpolation.pyx:8:9: 'int_t' is not a type identifier

I think this is due to changes how numpy/cython handle int.

Building against numpy<2.0.0 does work.

EDIT Looks like this has already been fixed on the devel branch. Would it be possible to cut a release with that change?