1module(name = "compile_pip_requirements") 2 3bazel_dep(name = "rules_python", version = "0.0.0") 4local_path_override( 5 module_name = "rules_python", 6 path = "../../..", 7) 8 9python = use_extension("@rules_python//python/extensions:python.bzl", "python") 10python.toolchain( 11 python_version = "3.9", 12) 13 14pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip") 15pip.parse( 16 hub_name = "pip_empty", 17 python_version = "3.9", 18 requirements_lock = "//empty:requirements.txt", 19) 20use_repo(pip, "pip_empty") 21