Skip to content

Compatibility with NumPy 2.0 #1972

@jorisvandenbossche

Description

@jorisvandenbossche

NumPy 2.0 is coming soon, and we should ensure shapely is fully compatible to ensure a smooth transition of our users. Overview issue on numpy's side:

Quick summary of the most important aspects for us:

  • NumPy 2.0 as a major release changes the C ABI, so any package that builds against the NumPy C API like shapely will have to be rebuilt with numpy 2.0 to be able to run with numpy 2.0. That also means that our current released packages (built with older versions of numpy) will break (fail to import) with numpy 2.0, and so we should ideally add a numpy<2 pin.
    This happens at the moment when installing shapely from a wheel in an environment with numpy nightly.

We don't yet test with numpy nightly

A to do list based on my current understanding:

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions