Skip to content

Commit 99fa3a5

Browse files
Google APIscopybara-github
authored andcommitted
fix: Upgrade rules_python to 0.9.0
fix: Set bazel python interpreter to 3.9 PiperOrigin-RevId: 459075062
1 parent e0d0106 commit 99fa3a5

1 file changed

Lines changed: 14 additions & 4 deletions

File tree

WORKSPACE

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ http_archive(
4141
# version of the library will be selected as a transitive dependency of gRPC.
4242
http_archive(
4343
name = "rules_python",
44-
strip_prefix = "rules_python-0.5.0",
45-
url = "https://github.com/bazelbuild/rules_python/archive/0.5.0.tar.gz",
44+
strip_prefix = "rules_python-0.9.0",
45+
url = "https://github.com/bazelbuild/rules_python/archive/0.9.0.tar.gz",
4646
)
4747

4848
http_archive(
@@ -255,9 +255,19 @@ load("@rules_gapic//python:py_gapic_repositories.bzl", "py_gapic_repositories")
255255

256256
py_gapic_repositories()
257257

258-
load("@rules_python//python:pip.bzl", "pip_repositories")
258+
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
259259

260-
pip_repositories()
260+
python_register_toolchains(
261+
name = "python39",
262+
python_version = "3.9",
263+
)
264+
265+
load("@python39//:defs.bzl", "interpreter")
266+
load("@rules_python//python:pip.bzl", "pip_install")
267+
268+
pip_install(
269+
python_interpreter_target = interpreter,
270+
)
261271

262272
_gapic_generator_python_version = "1.1.0"
263273

0 commit comments

Comments
 (0)