Skip to content

Enable free-threaded Python 3.14t#16

Open
mkanat wants to merge 1 commit intomainfrom
freethreaded-python
Open

Enable free-threaded Python 3.14t#16
mkanat wants to merge 1 commit intomainfrom
freethreaded-python

Conversation

@mkanat
Copy link
Owner

@mkanat mkanat commented Mar 4, 2026

Summary

  • Add a custom Bazel platform (//tools/platforms:freethreaded) that inherits from the host platform, adds aspect_rules_py's freethreading_enabled constraint for cp314t wheel selection, and sets the rules_python py_freethreaded=yes flag for the free-threaded interpreter.
  • Register it as the default target platform (.bazelrc) and execution platform (MODULE.bazel).

Blocked on upstream issues

Tests will not pass until these are resolved:

  • aspect-build/rules_py#805: select_chain picks abi3 wheels that segfault under the cp314t ABI (different struct layouts make standard-ABI extensions crash on load).
  • google/re2#602: No cp314t wheels published for google-re2 (transitive dep via protovalidatecel-python).

Test plan

  • bazelisk build //... succeeds (verified)
  • bazelisk test //... — blocked on upstream issues above

🤖 Generated with Claude Code

Define a custom Bazel platform that inherits from the host, adds
aspect_rules_py's freethreading_enabled constraint (for cp314t wheel
selection), and sets the rules_python py_freethreaded=yes flag (for
the free-threaded interpreter). Register it as both the default target
platform (.bazelrc) and execution platform (MODULE.bazel).

Blocked on upstream issues before tests will pass:
- aspect-build/rules_py#805: select_chain picks abi3 wheels that
  segfault under the cp314t ABI
- google/re2#602: no cp314t wheels published for google-re2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

The latest Buf updates on your PR. Results from workflow CI / lint (pull_request).

BuildFormatLintBreakingUpdated (UTC)
✅ passed⏩ skipped❌ failed (0)⏩ skippedMar 4, 2026, 9:40 AM

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