• Home
  • Raw
  • Download

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

8 load("@rules_python//python:repositories.bzl", "py_repositories", "python_register_toolchains")
18 load("@rules_python//python:pip.bzl", "pip_install")
21 # (Optional) You can provide extra parameters to pip.
22 # Here, make pip output verbose (this is usable with `quiet = False`).
23 #extra_pip_args = ["-v"],
25 … You can exclude custom elements in the data section of the generated BUILD files for pip packages.
30 …# acts as an executable). The latter can be anything that could be used as Python interpreter. E.g…
31 # 1. Python interpreter that you compile in the build file (as above in @python_interpreter).
32 # 2. Pre-compiled python interpreter included with http_archive
33 # 3. Wrapper script, like in the autodetecting python toolchain.
35 …e the interpreter constant that resolves to the host interpreter from the default Python toolchain.
38 # (Optional) You can set quiet to False if you want to see pip output.
41 # (Optional) You can set an environment in the pip process to control its
42 # behavior. Note that pip is run in "isolated" mode so no PIP_<VAR>_<NAME>
47 # Uses the default repository name "pip"
51 load("@pip//:requirements.bzl", "install_deps")
56 # You could optionally use an in-build, compiled python interpreter as a toolchain,
57 # and also use it to execute pip.
59 # Special logic for building python interpreter with OpenSSL from homebrew.
60 # See https://devguide.python.org/setup/#macos-and-os-x
63 # ./configure --prefix=$(pwd)/bazel_install --with-openssl=$(brew --prefix openssl)
65 # ./configure --prefix=$(pwd)/bazel_install
70 # E.g. on Ubuntu: `sudo apt install libssl-dev`
86 # "ln -s bazel_install/bin/python3 python_bin",
89 # strip_prefix = "Python-3.8.3",
90 # urls = ["https://www.python.org/ftp/python/3.8.3/Python-3.8.3.tar.xz"],
94 # Register the toolchain with the same python interpreter we used for pip in pip_install().
96 # End of in-build Python interpreter setup.