From c5b8b169027ce697c29c776c6b207a060f84c37b Mon Sep 17 00:00:00 2001 From: Ignas Anikevicius <240938+aignas@users.noreply.github.com> Date: Thu, 14 Nov 2024 11:53:50 +0900 Subject: [PATCH] migrate away from using the interpreter const --- WORKSPACE | 2 +- .../compile_pip_requirements_test_from_external_repo/WORKSPACE | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index b77918f5ef..46ebbc8cde 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -86,7 +86,7 @@ load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps _py_gazelle_deps() # This interpreter is used for various rules_python dev-time tools -load("@python//3.11.9:defs.bzl", "interpreter") +interpreter = "@python_3_11_9_host//:python" ##################### # Install twine for our own runfiles wheel publishing. diff --git a/tests/integration/compile_pip_requirements_test_from_external_repo/WORKSPACE b/tests/integration/compile_pip_requirements_test_from_external_repo/WORKSPACE index 48caeb442f..7834000854 100644 --- a/tests/integration/compile_pip_requirements_test_from_external_repo/WORKSPACE +++ b/tests/integration/compile_pip_requirements_test_from_external_repo/WORKSPACE @@ -12,7 +12,6 @@ python_register_toolchains( python_version = "3.9", ) -load("@python39//:defs.bzl", "interpreter") load("@rules_python//python:pip.bzl", "pip_parse") local_repository( @@ -22,7 +21,7 @@ local_repository( pip_parse( name = "pypi", - python_interpreter_target = interpreter, + python_interpreter_target = "@python39_host//:python", requirements_lock = "@compile_pip_requirements//:requirements_lock.txt", )