forked from envoyproxy/envoy
-
Notifications
You must be signed in to change notification settings - Fork 0
/
repositories_extra.bzl
23 lines (19 loc) · 961 Bytes
/
repositories_extra.bzl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
load("@emsdk//:deps.bzl", emsdk_deps = "deps")
load("@rules_python//python:repositories.bzl", "python_register_toolchains")
load("@proxy_wasm_cpp_host//bazel/cargo/wasmtime:crates.bzl", "wasmtime_fetch_remote_crates")
load("//bazel/external/cargo:crates.bzl", "raze_fetch_remote_crates")
load("@aspect_bazel_lib//lib:repositories.bzl", "aspect_bazel_lib_dependencies")
# Python version for `rules_python`
PYTHON_VERSION = "3.10.2"
# Envoy deps that rely on a first stage of dependency loading in envoy_dependencies().
def envoy_dependencies_extra(python_version = PYTHON_VERSION):
emsdk_deps()
raze_fetch_remote_crates()
wasmtime_fetch_remote_crates()
# Registers underscored Python minor version - eg `python3_10`
python_register_toolchains(
name = "python%s" % ("_".join(python_version.split(".")[:-1])),
python_version = python_version,
ignore_root_user_error = True,
)
aspect_bazel_lib_dependencies()