Skip to content

Cannot build on 3.15t #13974

@lmmx

Description

@lmmx

I have just been setting up CI for all available versions here

This means I now build a package using pygithub which depends transitively on cryptography, and while 3.15 is fine, 3.15t does not build:

        --- stderr
        error: The configured Python interpreter version (3.15) is newer than
      PyO3's maximum supported version (3.14)
        = help: please check if an updated version of PyO3 is available.
      Current version: 0.26.0
        = help: The free-threaded build of CPython does not support the
      limited API so this check cannot be suppressed.
      warning: build failed, waiting for other jobs to finish...
      💥 maturin failed
        Caused by: Failed to build a native library through cargo
        Caused by: Cargo build finished with "exit status:
      101": `env -u CARGO PYO3_BUILD_EXTENSION_MODULE="1"
      PYO3_ENVIRONMENT_SIGNATURE="cpython-3.15-64bit"
      PYO3_PYTHON="/home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpL3gsXp/bin/python"
      PYTHON_SYS_EXECUTABLE="/home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpL3gsXp/bin/python"
      "cargo" "rustc" "--profile" "release" "--message-format"
      "json-render-diagnostics" "--locked" "--manifest-path"
      "/home/runner/work/_temp/setup-uv-cache/sdists-v9/pypi/cryptography/46.0.3/8T9BoN7i5KY9nAk9SDoMH/src/src/rust/Cargo.toml"
      "--lib"`
      Error: command ['maturin', 'pep517', 'build-wheel', '-i',
      '/home/runner/work/_temp/setup-uv-cache/builds-v0/.tmpL3gsXp/bin/python',
      '--compatibility', 'off'] returned non-zero exit status 1

      hint: This usually indicates a problem with the package or the build
      environment.
  help: `cryptography` (v46.0.3) was included because `octopolars` (v1.1.6)
        depends on `pygithub` (v2.8.1) which depends on `pyjwt[crypto]`
        (v2.10.1) which depends on `cryptography`

The latest PyO3 at time of writing is 0.27.2 (last week) and the tracking issue is

I don't see any build logs in the regular 3.15 job, so maybe it's that there are ready made wheels for that and the 3.15t needs to build it itself 🤔 Not sure how it works

Not a blocker for me but reporting as it doesn't seem to be on the radar here

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