Skip to content

BUILD: Update wheels.yml and add Python 3.15 to the released versions - #62

Open
charris wants to merge 2 commits into
numpy:maintenance/2.5.xfrom
charris:update-cibuildwheel
Open

BUILD: Update wheels.yml and add Python 3.15 to the released versions#62
charris wants to merge 2 commits into
numpy:maintenance/2.5.xfrom
charris:update-cibuildwheel

Conversation

@charris

@charris charris commented Aug 6, 2026

Copy link
Copy Markdown
Member

This updates the dependencies in wheels.yml to match those in main and adds 3.15/3.15t to the list of python versions for which we build wheels.

@charris

charris commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

We may want to update Cython and Pytest as well.

@rgommers

rgommers commented Aug 6, 2026

Copy link
Copy Markdown
Member

Looks like the Cython limited API tests are very unhappy on Windows for some reason.

@charris
charris force-pushed the update-cibuildwheel branch from aadc2b3 to 5f49c4c Compare August 6, 2026 13:16
@charris

charris commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

Looks like the Cython limited API tests are very unhappy

Yeah, that seems to need something in the 3.3 series.

This updates the dependencies in .github/workflows/wheels.yml, and adds
3.15 and 3.15t to the Python versions for which wheels are uploaded to
PyPI. The 3.15 wheels are built against the rc1 version.
@rgommers

rgommers commented Aug 6, 2026

Copy link
Copy Markdown
Member

3.15t does pass, just GIL-enabled 3.15 is failing. @ngoldbaum does it look familiar to you?

@charris
charris force-pushed the update-cibuildwheel branch from 5f49c4c to 223bf1f Compare August 6, 2026 13:39
@ngoldbaum

Copy link
Copy Markdown
Member

The error is:

2026-08-06T13:25:30.0000992Z FAILED: limited_api_opaque.pyd 
2026-08-06T13:25:30.0002348Z "link"  /MACHINE:x64 /OUT:limited_api_opaque.pyd limited_api_opaque.pyd.p/limited_api.c.obj "/release" "/nologo" "/OPT:REF" "/DLL" "/IMPLIB:limited_api_opaque.lib" "/NODEFAULTLIB:python315.lib" "C:\Users\runneradmin\AppData\Local\pypa\cibuildwheel\Cache\nuget-cpython\python.3.15.0-rc1\tools\libs\python3.lib" "kernel32.lib" "user32.lib" "gdi32.lib" "winspool.lib" "shell32.lib" "ole32.lib" "oleaut32.lib" "uuid.lib" "comdlg32.lib" "advapi32.lib"
2026-08-06T13:25:30.0002521Z LINK : fatal error LNK1104: cannot open file 'python3t.lib'
2026-08-06T13:25:30.0002527Z 

So it's trying to build the opaque limited API extension test extension on the GIL-enabled build. I think that should technically work (as long as it doesn't depend on meson). The quickest fix is probably just to disable it in the build.

@charris

charris commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

@ngoldbaum It works on the main branch, so we seem to be missing a backport somewhere. Does that ring a bell?

@ngoldbaum

Copy link
Copy Markdown
Member

I think the maintenance branch is missing the meson.build hunk in numpy/numpy#31582.

@charris

charris commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

meson.build in main has 'python.allow_limited_api=false'

@ngoldbaum

Copy link
Copy Markdown
Member

That shouldn't be backported. It's to support Pratham's internship work.

@charris

charris commented Aug 6, 2026

Copy link
Copy Markdown
Member Author

close/reopen

@charris charris closed this Aug 6, 2026
@charris charris reopened this Aug 6, 2026
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.

4 participants