Skip to content

WHL: uploading nightlies for CPython 3.15 (+3.15t ?) #43

Closed

Description

@neutrinoceros

I've been testing astropy-dev against numpy-dev main + cp315 alphas for a couple months and I've yet to report any incompatibility between the latter 2. I wouldn't presume this happened magically, so supposedly, there must be some level of testing going on in numpy proper, and I'm opening this ticket to ask whether plans to add cp315 to nightly build matrices are already underway, or if there are any known blocker that I just didn't find (apologies if I did !).

Activity

  1. andyfaff commented on Apr 26, 2026

    @andyfaff
    Member

    3.15 is currently being tested on a linux job.

  2. andyfaff commented on Apr 26, 2026

    @andyfaff
    Member

    The beta release of 3.15 occurs on May 5th, we may start nightlies after that.

  3. andyfaff commented on May 10, 2026

    @andyfaff
    Member

    Nightly wheels will have to wait until cibuildwheel supports the 3.15 beta, it seems that support is being added in pypa/cibuildwheel#2833

  4. andyfaff commented on May 10, 2026

    @andyfaff
    Member

    I do have a PR ready to go when that happens.

  5. blink1073 commented on May 14, 2026

    @blink1073

    https://github.com/pypa/cibuildwheel/releases/tag/v4.0.0rc1 has Python 3.15 support if you're willing to use that for nightlies. We're tracking this issue from scikit-image.

  6. andyfaff commented on May 14, 2026

    @andyfaff
    Member

    We'll wait for the full release of cibuildwheel before using it

  7. neutrinoceros commented on Jun 8, 2026

    @neutrinoceros
    Author

    cibuildwheel 4.0.0 is up now !

  8. andyfaff commented on Jun 8, 2026

    @andyfaff
    Member

    I've got the changes running on my fork. I'm not sure if we're going to wait for a cooldown period (of cibuildwheel) before merging here.

  9. andyfaff commented on Jun 8, 2026

    @andyfaff
    Member
  10. rgommers commented on Jun 8, 2026

    @rgommers
    Member

    There's one not very interesting error on win32 about a large-memory test, looks like that can be skipped if it keeps failing. The more interesting failures happen only on the GIL-enabled interpreters, and are compile tests that fail on:

    LINK : fatal error LNK1104: cannot open file 'python3t.lib'
    

    Meson trying to link to python3t.dll on the GIL-enabled build is probably a known issue, but I don't have the details sharp right now - @ngoldbaum or @mgorny does one of you know?

  11. ngoldbaum commented on Jun 8, 2026

    @ngoldbaum
    Member

    Meson trying to link to python3t.dll on the GIL-enabled build is probably a known issue, but I don't have the details sharp right now - @ngoldbaum or @mgorny does one of you know?

    I don't think I've seen this exact error before. I'll try to reproduce it on my Windows machine.

  12. ngoldbaum commented on Jun 8, 2026

    @ngoldbaum
    Member

    This makes a little more sense with a bit of extra context from the build log:

    2026-06-08T11:19:01.4562166Z 
    2026-06-08T11:19:01.4562331Z FAILED: limited_api_opaque.pyd 
    2026-06-08T11:19:01.4562579Z 
    2026-06-08T11:19:01.4565002Z "link"  /MACHINE:x64 /OUT:limited_api_opaque.pyd limited_api_opaque.pyd.p/limited_api_opaque.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-b2\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-06-08T11:19:01.4567514Z 
    2026-06-08T11:19:01.4567742Z LINK : fatal error LNK1104: cannot open file 'python3t.lib'
    

    The build that's failing is the test module for abi3t support that @kumaraditya303 added recently. Not sure offhand why this test doesn't cause issues in NumPy's CI but does cause issues in the build here. Digging in more.

  13. ngoldbaum commented on Jun 8, 2026

    @ngoldbaum
    Member

    Not sure offhand why this test doesn't cause issues in NumPy's CI but does cause issues in the build here.

    It turns out we're only running Python 3.15 CI on Linux right now so NumPy's CI never hit this case.

  14. ngoldbaum commented on Jun 8, 2026

    @ngoldbaum
    Member

    OK, I think I understand what's happening. Meson doesn't yet support building abi3t extensions on Windows, so it's not adding python3t.lib to the linker command. Instead, NumPy is explicitly defining Py_TARGET_ABI3T in the test, which causes Python to emit python3t.lib as a required library. However, meson passes python3.lib as a fully qualified path, it doesn't simply add the parent directory of python3.lib to the linker search path. So even though there is a python3t.lib right next to the python3.lib that's explicitly passed in, MSVC doesn't know about it and the build fails.

    So to fix this there's going to need to be some work in meson to wire up the Windows library search paths correctly.

    For now, in NumPy, I'm just going to only enable that test on the free-threaded build on Windows. I'm also going to add Python 3.15 CI on Windows and MacOS.

  15. ngoldbaum commented on Jun 10, 2026

    @ngoldbaum
    Member

    The fix in NumPy is merged. @andyfaff would you mind trying again?

  16. andyfaff commented on Jun 10, 2026

    @andyfaff
    Member

    See #51

  17. andyfaff commented on Jun 11, 2026

    @andyfaff
    Member

    That PR is merged now. We'll see 3.15 nightlies in the next scheduled run.

  18. ngoldbaum commented on Jun 11, 2026

    @ngoldbaum
    Member

    The windows 32 bit 3.15t job is hitting failures.

    Maybe we should simply disable 3.15t win32 builds? I don't think we ever intend to ship them.

    We should fix the issues but disabling builds we don't intend to support long-term seems like a practical solution to unblock nightlies.

  19. andyfaff commented on Jun 11, 2026

    @andyfaff
    Member

    If we don't intend to ship them then I can strip them out of the build, I'll make a PR.

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

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