File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change 16
16
17
17
load ("//python:repositories.bzl" , "python_register_toolchains" )
18
18
load ("//python/extensions/private:pythons_hub.bzl" , "hub_repo" )
19
+ load ("//python/private:full_version.bzl" , "full_version" )
19
20
load ("//python/private:toolchains_repo.bzl" , "multi_toolchain_aliases" )
20
21
21
22
# This limit can be increased essentially arbitrarily, but doing so will cause a rebuild of all
@@ -74,7 +75,7 @@ def _python_impl(module_ctx):
74
75
module_toolchain_versions = []
75
76
76
77
for toolchain_attr in mod .tags .toolchain :
77
- toolchain_version = toolchain_attr .python_version
78
+ toolchain_version , _ , _ = full_version ( toolchain_attr .python_version ). rpartition ( "." )
78
79
toolchain_name = "python_" + toolchain_version .replace ("." , "_" )
79
80
80
81
# Duplicate versions within a module indicate a misconfigured module.
You can’t perform that action at this time.
0 commit comments