8000 Ignore global pip config files for pip-compile · bazel-contrib/rules_python@33c5f1b · GitHub
[go: up one dir, main page]

Skip to content

Commit 33c5f1b

Browse files
committed
Ignore global pip config files for pip-compile
1 parent ed6cc8f commit 33c5f1b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

python/pip_install/pip_compile.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,7 @@
5757
update_command = os.getenv("CUSTOM_COMPILE_COMMAND") or "bazel run //%s:%s" % (update_target_pkg, update_target_name)
5858

5959
os.environ["CUSTOM_COMPILE_COMMAND"] = update_command
60+
os.environ["PIP_CONFIG_FILE"] = os.getenv("PIP_CONFIG_FILE") or os.devnull
6061

6162
sys.argv.append("--generate-hashes")
6263
sys.argv.append("--output-file")

0 commit comments

Comments
 (0)
0