Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build errors with numpy>=2.0.0 #25

Open
cgcgcg opened this issue Sep 9, 2024 · 0 comments
Open

Build errors with numpy>=2.0.0 #25

cgcgcg opened this issue Sep 9, 2024 · 0 comments

Comments

@cgcgcg
Copy link

cgcgcg commented Sep 9, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant