python: use new hermetic built-in python interpreter
commit-id:62bb0339
@@ -66,15 +66,25 @@ jol_pinned_maven_install()
http_archive(
name = "rules_python",
- sha256 = "9fcf91dbcc31fde6d1edb15f117246d912c33c36f44cf681976bd886538deba6",
- strip_prefix = "rules_python-0.8.0",
- url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.8.0.tar.gz",
+ sha256 = "a3a6e99f497be089f81ec082882e40246bfd435f52f4e82f37e89449b04573f6",
+ strip_prefix = "rules_python-0.10.2",
+ url = "https://github.com/bazelbuild/rules_python/archive/refs/tags/0.10.2.tar.gz",
)
+load("@rules_python//python:repositories.bzl", "python_register_toolchains")
+
+python_register_toolchains(
+ name = "python3_9",
+ # Available versions are listed in @rules_python//python:versions.bzl.
+ python_version = "3.9",
+)
+
+load("@python3_9//:defs.bzl", "interpreter")
load("@rules_python//python:pip.bzl", "pip_parse")
pip_parse(
name = "pip",
+ python_interpreter_target = interpreter,
requirements_lock = "//python:requirements.txt",
)
