• Home
  • Raw
  • Download

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

15 bazel_dep(name = "rules_proto", version = "6.0.0-rc1")
17 # (py_proto_library specific) Add the protobuf library for well-known types (e.g. `Any`, `Timestamp…
21 # that --java_runtime_version=remotejdk_11 works with Bazel 8.
25 # MODULE.bazel.lock is cross-platform friendly, and there are transitive
30 # We next initialize the python toolchain using the extension.
31 # You can set different Python versions in this block.
32 python = use_extension("@rules_python//python/extensions:python.bzl", "python")
33 python.toolchain(
40 # We are also using a second version of Python in this project.
41 # Typically you will only need a single version of Python, but
43 # Note: we do not supporting using multiple pip extensions, this is
45 python.toolchain(
52 python.override(
72 python.single_version_override(
78 "aarch64-apple-darwin": "1409acd9a506e2d1d3b65c1488db4e40d8f19d09a7df099667c87a506f71c0ef",
79 … "aarch64-unknown-linux-gnu": "8f351a8cc348bb45c0f95b8634c8345ec6e749e483384188ad865b7428342703",
80 "x86_64-apple-darwin": "8146ad4390710ec69b316a5649912df0247d35f4a42e2aa9615bffd87b3e235a",
81 … "x86_64-pc-windows-msvc": "a1d9a594cd3103baa24937ad9150c1a389544b4350e859200b3e5c036ac352bd",
82 … "x86_64-unknown-linux-gnu": "9b64eca2a94f7aff9409ad70bdaa7fbbf8148692662e764401883957943620dd",
84 urls = ["20220227/cpython-{python_version}+20220227-{platform}-{build}.tar.gz"],
91 python.single_version_platform_override(
94 platform = "aarch64-apple-darwin",
97 urls = ["20220227/cpython-{python_version}+20220227-{platform}-{build}.tar.gz"],
100 # You only need to load this repositories if you are using multiple Python versions.
101 # See the tests folder for various examples on using multiple Python versions.
104 use_repo(python, "python_3_10", "python_3_9", "python_versions", "pythons_hub")
107 uv = use_extension("@rules_python//python/uv:extensions.bzl", "uv")
116 # See @rules_python//python/extensions:whl_mods.bzl attributes for more information
119 # wheel in different pip hubs.
120 pip = use_extension("@rules_python//python/extensions:pip.bzl", "pip")
123 pip.whl_mods(
142 pip.whl_mods(
151 data_exclude_glob = ["site-packages/*.dist-info/WHEEL"],
155 use_repo(pip, "whl_mods_hub")
157 # To fetch pip dependencies, use pip.parse. We can pass in various options,
158 # but typically we pass requirements and the Python version. The Python
159 # version must have been configured by a corresponding `python.toolchain()`
162 # the Python interpreter to run to resolve dependencies.
163 pip.parse(
168 experimental_index_url = "${PIP_INDEX_URL:-https://pypi.org/simple}",
172 # "my_package": "https://different-index-url.com",
174 # Or you can specify extra indexes like with `pip`:
176 # "https://different-index-url.com",
181 "sphinxcontrib-qthelp",
182 "sphinxcontrib-htmlhelp",
183 "sphinxcontrib-devhelp",
184 "sphinxcontrib-applehelp",
185 "sphinxcontrib-serializinghtml",
199 hub_name = "pip",
203 # are providing pip.parse with the label of the mod
210 pip.parse(
214 "sphinxcontrib-qthelp",
215 "sphinxcontrib-htmlhelp",
216 "sphinxcontrib-devhelp",
217 "sphinxcontrib-applehelp",
218 "sphinxcontrib-serializinghtml",
224 # Using host python version
233 hub_name = "pip",
247 # are providing pip.parse with the label of the mod
257 # The patches have to be in the unified-diff format.
258 pip.override(
259 file = "requests-2.25.1-py2.py3-none-any.whl",
267 use_repo(pip, "pip")