File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -59,10 +59,24 @@ http_archive(
59
59
60
60
load ("@rules_python//python:repositories.bzl" , "python_register_toolchains" )
61
61
62
+ load (
63
+ "@rules_python//python:repositories.bzl" ,
64
+ "py_repositories" ,
65
+ "python_register_toolchains" ,
66
+ )
67
+ py_repositories ()
68
+
69
+ load (
70
+ "@org_tensorflow//tensorflow/tools/toolchains/python:python_repo.bzl" ,
71
+ "python_repository" ,
72
+ )
73
+ python_repository (name = "python_version_repo" )
74
+ load ("@python_version_repo//:py_version.bzl" , "HERMETIC_PYTHON_VERSION" )
75
+
62
76
python_register_toolchains (
63
77
name = "python" ,
64
78
ignore_root_user_error = True ,
65
- python_version = "3.9" ,
79
+ python_version = HERMETIC_PYTHON_VERSION ,
66
80
)
67
81
68
82
# Initialize TensorFlow's external dependencies.
You can’t perform that action at this time.
0 commit comments