Skip to content

Commit 196eec8

Browse files
Merge pull request #25786 from vfdev-5:add-313-ft-configs
PiperOrigin-RevId: 713415451
2 parents e20523c + 00806dd commit 196eec8

File tree

3 files changed

+717
-0
lines changed

3 files changed

+717
-0
lines changed

WORKSPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ python_init_repositories(
1313
"3.11": "//build:requirements_lock_3_11.txt",
1414
"3.12": "//build:requirements_lock_3_12.txt",
1515
"3.13": "//build:requirements_lock_3_13.txt",
16+
"3.13-ft": "//build:requirements_lock_3_13_ft.txt",
1617
},
1718
local_wheel_inclusion_list = [
1819
"jaxlib*",

build/build.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -401,6 +401,11 @@ async def main():
401401
bazel_command_base.append(
402402
f"--repo_env=HERMETIC_PYTHON_VERSION={args.python_version}"
403403
)
404+
# Let's interpret X.YY-ft version as free-threading python and set rules_python config flag:
405+
if args.python_version.endswith("-ft"):
406+
bazel_command_base.append(
407+
"--@rules_python//python/config_settings:py_freethreaded='yes'"
408+
)
404409

405410
# Enable verbose failures.
406411
bazel_command_base.append("--verbose_failures=true")

0 commit comments

Comments
 (0)