1local_repository( 2 name = "rules_python", 3 path = "../../..", 4) 5 6load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains") 7 8py_repositories() 9 10# This call is included in `py_repositories` and we are calling 11# `pip_install_dependencies` only to ensure that we are not breaking really old 12# code. 13# 14# TODO @aignas 2024-06-23: remove this before 1.0.0 15load("@rules_python//python/pip_install:repositories.bzl", "pip_install_dependencies") 16 17pip_install_dependencies() 18 19python_register_toolchains( 20 name = "python39", 21 python_version = "3.9", 22) 23 24load("@rules_python//python:pip.bzl", "pip_parse") 25 26pip_parse( 27 name = "pip_empty", 28 python_interpreter_target = "@python39_host//:python", 29 requirements_lock = "//empty:requirements.txt", 30) 31 32load("@pip_empty//:requirements.bzl", "install_deps") 33 34install_deps() 35