Skip to content

universal update script for linux/unix/osx #3965

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

Closed
wants to merge 1 commit into from
Closed

universal update script for linux/unix/osx #3965

wants to merge 1 commit into from

Conversation

ghost
Copy link

@ghost ghost commented Sep 13, 2016

After awhile I got tired of not being able to update newer modules because they weren't in my distro's repo or I had to update them one-by-one with pip.

Of course you can alter this to make it more safe in anyway

@ghost
Copy link
Author

ghost commented Sep 13, 2016

Also as I have tested this works with python3 also

@pfmoore
Copy link
Member

pfmoore commented Sep 13, 2016

This looks like a reasonable little utility, but it's not really something we'd add to pip directly. If nothing else, we'd want a cross-platform solution (and even then, if it were to be something pip supported, we'd add it as a pip subcommand - there are a number of ongoing discussions around this.

import os

update_list = []
p = os.popen('sudo -H pip freeze --local',"r")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As a personal script, this is fine but you should probably use subprocess.Popen for production scripts.

@pradyunsg
Copy link
Member

This looks like a reasonable little utility, but it's not really something we'd add to pip directly.

@pfmoore Can we close this PR then?

@xavfernandez
Copy link
Member

Agreed, this won't be included in pip.
Thanks for the PR though.

@lock lock bot added the auto-locked Outdated issues that have been locked by automation label Jun 3, 2019
@lock lock bot locked as resolved and limited conversation to collaborators Jun 3, 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.

3 participants