BLD/DEP: any `cp315-abi3t` wheel requires `numpy>=2.5.0` at runtime · Issue #20493 · astropy/astropy · GitHub
Skip to content

BLD/DEP: any cp315-abi3t wheel requires numpy>=2.5.0 at runtime #20493

Open

Description

@neutrinoceros

targeting abi3t for C code that depends on numpy explicitly requires setting at least this build-time requirement
#define NPY_TARGET_VERSION NPY_2_5_API_VERSION
but then the resulting binary cannot be used against any older version at runtime. Even by SPEC 0, this is a very aggressive runtime requirement to make. I'm planning to experiment with building cp315-abi3t wheels, but publishing them would require adding logic to the build system so that the runtime requirement on numpy can be modified dynamically at build time. This issue is a reminder of that, and a sub-issue to #19249

Activity

  1. yashgoyal0110 commented on Sep 29, 2026

    @yashgoyal0110

    Hey @neutrinoceros
    is it open for contribution?

  2. neutrinoceros commented on Sep 30, 2026

    @neutrinoceros
    ContributorAuthor

    not at the moment. This is a reminder issue for when existing blockers are lifted.

  3. neutrinoceros commented on Oct 16, 2026

    @neutrinoceros
    ContributorAuthor

    It is definitely possible to run numpy-dependent abi3t wheels against older numpy at runtime. I just confirmed it with some PyO3-based extensions. I might look there for a solution.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions