From 9438b430e7ce725d527295c35cfefc36fca596b0 Mon Sep 17 00:00:00 2001 From: bhack Date: Sat, 11 May 2024 12:47:38 +0200 Subject: [PATCH] Update WORKSPACE --- WORKSPACE | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) diff --git a/WORKSPACE b/WORKSPACE index 5baae6b148..e6e83a8342 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -20,6 +20,29 @@ http_archive( ], ) +http_archive( + name = "rules_python", + sha256 = "84aec9e21cc56fbc7f1335035a71c850d1b9b5cc6ff497306f84cced9a769841", + strip_prefix = "rules_python-0.23.1", + url = "https://github.com/bazelbuild/rules_python/releases/download/0.23.1/rules_python-0.23.1.tar.gz", +) + +load("@rules_python//python:repositories.bzl", "python_register_toolchains") +load( + "@org_tensorflow//tensorflow/tools/toolchains/python:python_repo.bzl", + "python_repository", +) + +python_repository(name = "python_version_repo") + +load("@python_version_repo//:py_version.bzl", "HERMETIC_PYTHON_VERSION") + +python_register_toolchains( + name = "python", + ignore_root_user_error = True, + python_version = HERMETIC_PYTHON_VERSION, +) + load("@org_tensorflow//tensorflow:workspace3.bzl", "tf_workspace3") tf_workspace3()