Skip to content

Conversation

@mschuettlerTNG
Copy link
Contributor

Description:

This PR prevents pip to use global config files during package installations.

Changes Made:

  • set env variable to disable global config file loading

Testing Done:

Tested locally on B580.

Checklist:

  • I have tested the changes locally.
  • I have self-reviewed the code changes.

try:
logging.info(f"calling cmd process: {args}")
output = subprocess.check_output(args, cwd=cwd)
output = subprocess.check_output(args, cwd=cwd, env={**os.environ, "PIP_CONFIG_FILE": os.devnull})

Check notice

Code scanning / Bandit

subprocess call - check for execution of untrusted input. Note

subprocess call - check for execution of untrusted input.
@qiacheng qiacheng merged commit da43b5a into intel:dev Oct 15, 2025
6 of 7 checks passed
@mschuettlerTNG mschuettlerTNG deleted the prevent-global-pip-config branch October 19, 2025 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants