• Home
  • Raw
  • Download

Lines Matching +full:python +full:- +full:pip

14 # We next initialize the python toolchain using the extension.
15 # You can set different Python versions in this block.
16 python = use_extension("@rules_python//python/extensions:python.bzl", "python")
17 python.toolchain(
24 # We are also using a second version of Python in this project.
25 # Typically you will only need a single version of Python, but
27 # Note: we do not supporting using multiple pip extensions, this is
29 python.toolchain(
34 # You only need to load this repositories if you are using multiple Python versions.
35 # See the tests folder for various examples on using multiple Python versions.
38 use_repo(python, "python_3_10", "python_3_9", "python_versions")
43 # See @rules_python//python/extensions:whl_mods.bzl attributes for more information
46 # wheel in different pip hubs.
47 pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
50 pip.whl_mods(
69 pip.whl_mods(
78 data_exclude_glob = ["site-packages/*.dist-info/WHEEL"],
82 use_repo(pip, "whl_mods_hub")
84 # To fetch pip dependencies, use pip.parse. We can pass in various options,
85 # but typically we pass requirements and the Python version. The Python
86 # version must have been configured by a corresponding `python.toolchain()`
89 # the Python interpreter to run to resolve dependencies.
90 pip.parse(
91 hub_name = "pip",
96 # are providing pip.parse with the label of the mod
103 pip.parse(
104 hub_name = "pip",
109 # are providing pip.parse with the label of the mod
117 # NOTE: The pip_39 repo is only used because the plain `@pip` repo doesn't
119 use_repo(pip, "pip", "pip_39")