We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 120590e commit d0191f0Copy full SHA for d0191f0
rules_python/piptool.py
@@ -73,7 +73,9 @@ def extract_packages(package_names):
73
def pip_main(argv):
74
# Extract the certificates from the PAR following the example of get-pip.py
75
# https://github.com/pypa/get-pip/blob/430ba37776ae2ad89/template.py#L164-L168
76
- cert_path = os.path.join(tempfile.mkdtemp(), "cacert.pem")
+ cert_tmpdir = tempfile.mkdtemp()
77
+ cert_path = os.path.join(cert_tmpdir, "cacert.pem")
78
+ atexit.register(lambda: shutil.rmtree(cert_tmpdir, ignore_errors=True))
79
with open(cert_path, "wb") as cert:
80
cert.write(pkgutil.get_data("pip._vendor.requests", "cacert.pem"))
81
argv = ["--disable-pip-version-check", "--cert", cert_path] + argv
tools/piptool.par
212 Bytes
0 commit comments