1"""Initialization of tink-py dependencies.""" 2 3load("@rules_python//python:pip.bzl", "pip_install") 4load("@pybind11_bazel//:python_configure.bzl", "python_configure") 5 6def tink_py_deps_init(workspace_name): 7 pip_install( 8 name = "tink_py_pip_deps", 9 quiet = False, 10 requirements = "@" + workspace_name + "//:requirements.txt", 11 ) 12 13 # Use `which python3` by default [1] unless PYTHON_BIN_PATH is specified [2]. 14 # 15 # [1] https://github.com/pybind/pybind11_bazel/blob/fc56ce8a8b51e3dd941139d329b63ccfea1d304b/python_configure.bzl#L434 16 # [2] https://github.com/pybind/pybind11_bazel/blob/fc56ce8a8b51e3dd941139d329b63ccfea1d304b/python_configure.bzl#L162 17 python_configure(name = "local_config_python", python_version = "3") 18