Ignore global pip config files for pip-compile (#473)
Co-authored-by: Jonathon Belotti <jonathon@canva.com>
diff --git a/python/pip_install/pip_compile.py b/python/pip_install/pip_compile.py
index 1c22d2c..0511806 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")