mirror of
https://github.com/edgelesssys/constellation.git
synced 2025-11-28 23:46:57 -05:00
bazel: provide semi-hermetic python toolchain (#1753)
The actual python version used in bazel is hermetic after this PR. However, we still require a host python toolchain for bootstrapping (this will be fixed soon upstream) and host wide glibc (+ libcrypt.so.1).
This commit is contained in:
parent
87b9d85669
commit
ab257944f9
3 changed files with 31 additions and 0 deletions
15
bazel/toolchains/python_deps.bzl
Normal file
15
bazel/toolchains/python_deps.bzl
Normal file
|
|
@ -0,0 +1,15 @@
|
|||
"""python toolchain rules"""
|
||||
|
||||
load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
|
||||
def python_deps():
|
||||
http_archive(
|
||||
name = "rules_python",
|
||||
sha256 = "94750828b18044533e98a129003b6a68001204038dc4749f40b195b24c38f49f",
|
||||
strip_prefix = "rules_python-0.21.0",
|
||||
urls = [
|
||||
"https://cdn.confidential.cloud/constellation/cas/sha256/94750828b18044533e98a129003b6a68001204038dc4749f40b195b24c38f49f",
|
||||
"https://github.com/bazelbuild/rules_python/releases/download/0.21.0/rules_python-0.21.0.tar.gz",
|
||||
],
|
||||
type = "tar.gz",
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue