| load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive") |
| |
| http_archive( |
| name = "protobuf", |
| sha256 = "da288bf1daa6c04d03a9051781caa52aceb9163586bff9aa6cfb12f69b9395aa", |
| strip_prefix = "protobuf-27.0", |
| url = "https://github.com/protocolbuffers/protobuf/releases/download/v27.0/protobuf-27.0.tar.gz", |
| ) |
| |
| http_archive( |
| name = "rules_cc", |
| sha256 = "d9bdd3ec66b6871456ec9c965809f43a0901e692d754885e89293807762d3d80", |
| strip_prefix = "rules_cc-0.0.13", |
| urls = ["https://github.com/bazelbuild/rules_cc/releases/download/0.0.13/rules_cc-0.0.13.tar.gz"], |
| ) |
| |
| local_repository( |
| name = "rules_python", |
| path = "../../..", |
| ) |
| |
| load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains") |
| |
| py_repositories() |
| |
| # This call is included in `py_repositories` and we are calling |
| # `pip_install_dependencies` only to ensure that we are not breaking really old |
| # code. |
| # |
| # TODO @aignas 2024-06-23: remove this before 1.0.0 |
| load("@rules_python//python/pip_install:repositories.bzl", "pip_install_dependencies") |
| |
| pip_install_dependencies() |
| |
| python_register_toolchains( |
| name = "python39", |
| python_version = "3.9", |
| ) |
| |
| load("@rules_python//python:pip.bzl", "pip_parse") |
| |
| pip_parse( |
| name = "pip_empty", |
| python_interpreter_target = "@python39_host//:python", |
| requirements_lock = "//empty:requirements.txt", |
| ) |
| |
| load("@pip_empty//:requirements.bzl", "install_deps") |
| |
| install_deps() |