From cb29a31250e3e05a2fddf155ea9439eee2bf98d1 Mon Sep 17 00:00:00 2001 From: Keith Smiley Date: Thu, 20 May 2021 12:00:15 -0700 Subject: [PATCH] Ignore global pip config files for pip-compile --- python/pip_install/pip_compile.py | 1 + 1 file changed, 1 insertion(+) diff --git a/python/pip_install/pip_compile.py b/python/pip_install/pip_compile.py index 1c22d2c0af..05118063f1 100644 --- a/python/pip_install/pip_compile.py +++ b/python/pip_install/pip_compile.py @@ -57,6 +57,7 @@ update_command = os.getenv("CUSTOM_COMPILE_COMMAND") or "bazel run //%s:%s" % (update_target_pkg, update_target_name) os.environ["CUSTOM_COMPILE_COMMAND"] = update_command +os.environ["PIP_CONFIG_FILE"] = os.getenv("PIP_CONFIG_FILE") or os.devnull sys.argv.append("--generate-hashes") sys.argv.append("--output-file")