-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Always install the latest pip version #4823
Comments
I agree with this.
This is not true. If I need (for some reason) At the end of the command execution, all my packages were installed with |
I don't see too much value here but a precaution. I mean, depending on a not pinned package is kind of dangerous because it's something that we don't control and could be anything. Also, if the new release of |
What I mean, the project itself may depend on pip, as a dependency, not to install their packages |
What about pin pip and then updated it on each release? |
Yes. I think this is the best approach. It has been easier updating some Python code than the docker image (I would like to release more frequently, though). So, I propose to run
as the first step before creating the virtualenv (this can be added in the VirtualEnvironment class as a method and run it first). That Also, I'd add a feature flag around that pinning so we can mark some project to always upgrade to the latest without pinning for example. Once there, we can take another different approach. Maybe better, but we have something already working that does not require tons of work. |
I wasn't able to do that #4808 (comment) I wasn't able to install the latest version of pip before the virtualenv creation, because the command will need to be run with sudo (we don't have sudo anyway...). We could use this option https://virtualenv.pypa.io/en/stable/userguide/#the-extra-search-dir-option or more easy, create the virtual env with the old pip version, but update the pip version after the virtualenv creation, that way we are able to install the core and user requirements using the latest pip. |
Either way works for me. Using
and then,
Upgrading |
If the first pip is broken all docs will be broken anyway and I can say that it will be easier to see what's going on for the user if we install pip after the env creation. |
Currently, the pip version comes from our docker images, since we don't release then too often, the pip version gets outdated very fast.
Here @humitos proposed to install the latest pip as a build step #4808 (comment)
I already have some code that makes that real (a description here #4808 (comment))
Are you agree with this? Should we add a feature flag first? I don't think any project depends on a specific pip version, or at least to install the packages if they depend on a pip version to build their docs, specifying that on their requirements will work.
The text was updated successfully, but these errors were encountered: