ali5h / rules_pip

pip package rules for bazel that are fast (incremental fetch), support different python versions and work with all kinds of packages (i.e. packages with namespaces)
MIT License
60 stars 24 forks source link

failed to download python packages listed in the requirements3.txt #2

Closed deryck1031 closed 4 years ago

deryck1031 commented 5 years ago

We are behind a proxy and have https_proxy set already. We are using your WORKSPACE for building, only thing we changed was the python version (3.7). Below is our BUILD file:

load("@piptool_deps_3//:requirements.bzl", "requirement") py_library( name = "greeting", srcs = ["greeting.py"], deps=[requirement("six"), ] )

We are getting below errors:

ERROR: An error occurred during the fetch of repository 'pypi__3_7__six_1_12_0': whl_library failed: (Could not find a version that satisfies the requirement six==1.12.0 (from -c /home/user/.cache/bazel/_bazel_zkf2 07m/95f94b938bcb1f4d30d7174b72ea61e0/external/piptool_deps_3/requirements.txt (line 10)) (from versions: none) pip._internal.exceptions.DistributionNotFound: No matching distribution found for six==1.12.0 (from -c /home/user/.cache/bazel/_bazel_zkf 207m/95f94b938bcb1f4d30d7174b72ea61e0/external/piptool_deps_3/requirements.txt (line 10))

ali5h commented 4 years ago

try to pass https_proxy through action_env