From 1fc983f35f54c6c37065fb46210a6da456b0fde6 Mon Sep 17 00:00:00 2001 From: Joshua Haberman Date: Mon, 18 Apr 2022 17:05:57 -0700 Subject: [PATCH] Added Python deps to upb_deps(). PiperOrigin-RevId: 442669011 --- WORKSPACE | 7 ------- bazel/workspace_deps.bzl | 7 +++++++ 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/WORKSPACE b/WORKSPACE index 823037bc8c..ea04c0d679 100644 --- a/WORKSPACE +++ b/WORKSPACE @@ -3,7 +3,6 @@ workspace(name = "upb") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("//bazel:python_downloads.bzl", "python_source_archive", "python_nuget_package") load("//bazel:workspace_deps.bzl", "upb_deps") -load("//bazel:system_python.bzl", "system_python") upb_deps() @@ -43,12 +42,6 @@ http_archive( patch_cmds = ["find google -type f -name BUILD.bazel -delete"], ) -system_python( - name = "system_python" -) - -register_toolchains("@system_python//:python_toolchain") - http_archive( name = "rules_fuzzing", sha256 = "23bb074064c6f488d12044934ab1b0631e8e6898d5cf2f6bde087adb01111573", diff --git a/bazel/workspace_deps.bzl b/bazel/workspace_deps.bzl index ca9b756990..e1889dda6f 100644 --- a/bazel/workspace_deps.bzl +++ b/bazel/workspace_deps.bzl @@ -1,6 +1,7 @@ load("@bazel_tools//tools/build_defs/repo:git.bzl", "git_repository") load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe") +load("//bazel:system_python.bzl", "system_python") def upb_deps(): maybe( @@ -42,3 +43,9 @@ def upb_deps(): strip_prefix = "bazel-skylib-main", urls = ["https://github.com/bazelbuild/bazel-skylib/archive/main.tar.gz"], ) + + system_python( + name = "system_python", + ) + + native.register_toolchains("@system_python//:python_toolchain")