flowmetal/MODULE.bazel

25 lines
577 B
Python
Raw Normal View History

bazel_dep(name = "rules_python", version = "0.19.0")
pip = use_extension("@rules_python//python:extensions.bzl", "pip")
pip.parse(
name = "pypa",
requirements_lock = "//tools/python:requirements_lock.txt",
)
use_repo(pip, "pypa")
# (Optional) Register a specific python toolchain instead of using the host version
python = use_extension("@rules_python//python:extensions.bzl", "python")
python.toolchain(
name = "python3_10",
python_version = "3.10",
)
use_repo(python, "python3_10_toolchains")
register_toolchains(
"@python3_10_toolchains//:all",
)