Skip to content

Commit c5b8b16

Browse files
committed
migrate away from using the interpreter const
1 parent 87eea07 commit c5b8b16

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

WORKSPACE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ load("@rules_python_gazelle_plugin//:deps.bzl", _py_gazelle_deps = "gazelle_deps
8686
_py_gazelle_deps()
8787

8888
# This interpreter is used for various rules_python dev-time tools
89-
load("@python//3.11.9:defs.bzl", "interpreter")
89+
interpreter = "@python_3_11_9_host//:python"
9090

9191
#####################
9292
# Install twine for our own runfiles wheel publishing.

tests/integration/compile_pip_requirements_test_from_external_repo/WORKSPACE

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@ python_register_toolchains(
1212
python_version = "3.9",
1313
)
1414

15-
load("@python39//:defs.bzl", "interpreter")
1615
load("@rules_python//python:pip.bzl", "pip_parse")
1716

1817
local_repository(
@@ -22,7 +21,7 @@ local_repository(
2221

2322
pip_parse(
2423
name = "pypi",
25-
python_interpreter_target = interpreter,
24+
python_interpreter_target = "@python39_host//:python",
2625
requirements_lock = "@compile_pip_requirements//:requirements_lock.txt",
2726
)
2827

0 commit comments

Comments
 (0)