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

pip-review does not upgrade pip? #9

Closed
ghost opened this issue Mar 7, 2016 · 9 comments
Closed

pip-review does not upgrade pip? #9

ghost opened this issue Mar 7, 2016 · 9 comments

Comments

@ghost
Copy link

ghost commented Mar 7, 2016

Pip gave me messages that it was out of date and continued after running pip-review --auto. Pip was updated after running pip install -U pip.

@jgonggrijp
Copy link
Owner

Do you consider this a bug? I'm not sure whether pip-review should upgrade pip, or pip should be the only program doing that. If I'm right, the current pip-tools don't update pip, either.

@ghost
Copy link
Author

ghost commented Mar 8, 2016

Is pip the only package not automatically upgraded? If so, I will close this.

@jgonggrijp
Copy link
Owner

As far as I know, pip is the only package not being updated by pip-review. But please don't take my word for it and do some testing to confirm. :-)

@ghost ghost closed this as completed Mar 14, 2016
@jgonggrijp
Copy link
Owner

From #13 it appears that pip-review does not update setuptools, either. I did not find an exception list in the source code, so both omissions are mysterious. Pull requests are welcome.

@ghost
Copy link
Author

ghost commented Nov 5, 2016

The reason for the omission is that neither setuptools nor pip are listed in the pip freeze command. What I will probably do is run pip list --outdated and then cross check the results with pip freeze in order to ensure that no packages are omitted. However, that method would require an explicit exemption for pip unless we want to have python -m pip logic.

@ghost
Copy link
Author

ghost commented Nov 5, 2016

I should say that I would personally favor upgrading pip as well. Would it be acceptable to put the python -m pip logic in?

@jgonggrijp
Copy link
Owner

I don't know. What do you mean by "the python -m pip logic"? Does pip behave differently when invoked as a module? Are you talking about actually borrowing logic from pip, or just about taking a particular approach?

@ghost
Copy link
Author

ghost commented Nov 6, 2016

When pip upgrades itself, the documentation recommends that instead of executing pip install --upgrade pip, the command python -m pip install --upgrade pip should be executed because pip is overwriting its own files. The logic that I am suggesting is that if and only if pip is being upgraded, it should be run in module mode, otherwise, pip should be run directly.

@jgonggrijp
Copy link
Owner

If you mean "make a special case for upgrading pip in the code, where pip itself is upgraded using python -m pip instead of just pip", I'm totally fine with that.

jgonggrijp added a commit that referenced this issue Nov 7, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant