Update example with extra_pip_args, pip_data_exclude and quite options (#49)
diff --git a/example/WORKSPACE b/example/WORKSPACE index 4baff5a..f42f7c5 100644 --- a/example/WORKSPACE +++ b/example/WORKSPACE
@@ -62,12 +62,24 @@ load("@rules_python_external//:defs.bzl", "pip_install") pip_install( - # You can optionally provide a python_interpreter (path) or a python_interpreter_target (a Bazel target, that + # (Optional) You can provide extra parameters to pip. + # Here, make pip output verbose (this is usable with `quiet = False`). + #extra_pip_args = ["-v"], + + # (Optional) You can exclude custom elements in the data section of the generated BUILD files for pip packages. + # Exclude directories with spaces in their names in this example (avoids build errors if there are such directories). + #pip_data_exclude = ["**/* */**"], + + # (Optional) You can provide a python_interpreter (path) or a python_interpreter_target (a Bazel target, that # acts as an executable). The latter can be anything that could be used as Python interpreter. E.g.: # 1. Python interpreter that you compile in the build file (as above in @python_interpreter). # 2. Pre-compiled python interpreter included with http_archive # 3. Wrapper script, like in the autodetecting python toolchain. python_interpreter_target = "@python_interpreter//:python_bin", + + # (Optional) You can set quiet to False if you want to see pip output. + #quiet = False, + # Uses the default repository name "pip" requirements = "//:requirements.txt", )