Skip to content

Build errors with numpy>=2.0.0 #25

Open
@cgcgcg

Description

@cgcgcg

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions