Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support free-threaded (nogil) Python builds #37

Open
nicholasjng opened this issue Aug 21, 2024 · 1 comment · May be fixed by #39
Open

Support free-threaded (nogil) Python builds #37

nicholasjng opened this issue Aug 21, 2024 · 1 comment · May be fixed by #39
Labels
enhancement New feature or request

Comments

@nicholasjng
Copy link
Owner

Relevant for Python 3.13+. Requires two things:

  1. Free-threading support in Python toolchains in rules_python (tracked in Added arg for free threading support bazelbuild/rules_python#2129).
  2. Free-threading support merged into nanobind (tracked in Support for free-threaded Python wjakob/nanobind#695).

Should be doable by "just" bumping nanobind to the next version supporting free-threading, and exposing a free-threading switch mirroring the proposed CMake flag (see the linked issue in 2)).

@nicholasjng nicholasjng added the enhancement New feature or request label Aug 21, 2024
@wjakob
Copy link

wjakob commented Oct 5, 2024

Hi @nicholasjng -- FYI, v2.2.0 is now out that officially supports free-threading.

@nicholasjng nicholasjng linked a pull request Oct 6, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants