Skip to content

Allow numpy>=2.5.2 on Python 3.15 - #150

Draft
gokulkrishna98 wants to merge 1 commit into
apple:mainfrom
gokulkrishna98:relax-numpy-pin-py315
Draft

gokulkrishna98 wants to merge 1 commit into
apple:mainfrom
gokulkrishna98:relax-numpy-pin-py315

Conversation

@gokulkrishna98

Copy link
Copy Markdown
Contributor

Summary

The unconditional numpy<2.5 pin makes coreai-torch unresolvable on Python 3.15. numpy 2.5.2 is the first release that ships CPython 3.15 wheels, and packages that support 3.15 (e.g. apple-coreai) require numpy>=2.5.2 there, so the two ranges never overlap.

This PR scopes the existing cap to Python < 3.15 and requires numpy>=2.5.2 on 3.15:

"numpy<2.5; python_version < '3.15'",
"numpy>=2.5.2; python_version >= '3.15'",

Testing

Resolved the package together with apple-coreai using uv pip compile for each Python version:

Python Before After
3.11 – 3.14 numpy 2.4.6 numpy 2.4.6 (unchanged)
3.15 numpy conflict numpy conflict resolved

Note

Full Python 3.15 installation also requires a coreai-core release with cp315 wheels (1.0.0b3 ships cp311–cp314 only). That is tracked separately; this PR removes the numpy blocker so it is not a second obstacle once coreai-core is available.

The unconditional numpy<2.5 pin makes coreai-torch unresolvable on
Python 3.15: numpy 2.5.2 is the first release with cp315 wheels, and
packages that support 3.15 (e.g. apple-coreai) require numpy>=2.5.2
there.

Scope the existing cap to Python < 3.15 and require numpy>=2.5.2 on
3.15. Resolution on Python 3.11-3.14 is unchanged.
@gokulkrishna98
gokulkrishna98 marked this pull request as draft November 12, 2026 00:33

This branch has not been deployed

No deployments
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

Successfully merging this pull request may close these issues.

1 participant