Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Check path permissions earlier during install #6800

Closed
wants to merge 4 commits into from

Conversation

tfolbrecht
Copy link

Enhancement proposal:

issue #6762

Before

if a user runs pip install without write access to the target directory, it will collect and download packages before failing with permission denied.

Before

After

This PR uses the check_path_owner function from pip._internal.utils.filesystem to check write permissions and exits with an error message

Screenshot from 2019-07-28 10-22-10

I'm still learning python.
If it would be better to move the option checks to a function I'll close this and go ahead and do that.

Thank you for taking the time to review my PR.

@tfolbrecht
Copy link
Author

Ahh, the linter got me.

@tfolbrecht tfolbrecht closed this Jul 28, 2019
@tfolbrecht tfolbrecht reopened this Jul 28, 2019
@tfolbrecht tfolbrecht closed this Jul 28, 2019
@tfolbrecht tfolbrecht deleted the check_install_path branch July 28, 2019 15:17
@tfolbrecht tfolbrecht restored the check_install_path branch July 28, 2019 15:17
@tfolbrecht tfolbrecht reopened this Jul 28, 2019
@tfolbrecht tfolbrecht closed this Jul 28, 2019
@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Aug 27, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Aug 27, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
auto-locked Outdated issues that have been locked by automation
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant