Skip to content

ignore user python packages by using -s option when running Python code via python -c#3440

Open
Flamefire wants to merge 1 commit intoeasybuilders:developfrom
Flamefire:python-c
Open

ignore user python packages by using -s option when running Python code via python -c#3440
Flamefire wants to merge 1 commit intoeasybuilders:developfrom
Flamefire:python-c

Conversation

@Flamefire
Copy link
Copy Markdown
Contributor

To avoid the user environment (Python packages installed to $HOME/lib/python*) pass -s to all invocations of python -c.

@boegel boegel changed the title ignore user python packages ignore user python packages by using -s option when running Python code via python -c Sep 11, 2024
@boegel
Copy link
Copy Markdown
Member

boegel commented Sep 11, 2024

@Flamefire Also here, we should add a check to the test suite to avoid that use of python -c without -s is introduced again going forward...

@boegel boegel added this to the release after 4.9.3 milestone Sep 11, 2024
@boegel boegel modified the milestones: release after 4.9.4, release after 5.0.0 Mar 18, 2025
@boegel boegel modified the milestones: next release (5.1.0), 5.x May 22, 2025
To avoid the user environment (Python packages installed to $HOME/lib/python*)
pass `-s` to all invocations of `python -c`.
@Flamefire
Copy link
Copy Markdown
Contributor Author

@boegel Can we get this in for the release?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants