-
Notifications
You must be signed in to change notification settings - Fork 253
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
Add option to specify pip version on windows #250
Comments
@mtreinish We've been discussing about e.g. |
@YannickJadoul yes I think adding support for a constraints file is more then sufficient for my use case. I've actually been trying to hack in a workaround using a constraints file via |
Actually, I realized that something like that would be possible and wanted to try that out today; but, it's not as easy to do as it seems, then? EDIT: I just tried |
It's just a path thing for me, I'm just going up against finding the constraints file for the env variable via the cwd. I probably need to just use an absolute path and figure out exactly where on disk the ci system is cloning things. |
Actually I've resolved the file path issues and it's not quote working as I was hoping. Yes the constraints file is getting honored but it looks like it's causing issues as things try to upgrade: The log is here: I still think having a user facing straightforward way to do this would be better |
Huh, that is a weird error, indeed:
I don't see how that command would be "modifying pip", do you? |
As part of the initial setup for an environment on windows: 'python -m pip install --upgrade pip' is run unconditionally. However, there are situtations where a specific version of pip is needed (normally to avoid issues introduced in new pip releases). This commit adds a new config env variable flag, CIBW_PIP_VERSION_WINDOWS, which takes a pip version in that will be used for this command. For example, if CIBW_PIP_VERSION_WINDOWS=19.3.1 then the windows environment setup will run 'python -m pip install --upgrade pip=19.3.1'. Fixes pypa#250
Closed as a duplicate of #239 |
As part of the initial setup for an environment
python -m pip install --upgrade pip
is run unconditionally on windows:https://github.com/joerick/cibuildwheel/blob/master/cibuildwheel/windows.py#L144
However, sometimes it's necessary to install a specific or capped version of pip to workaround issues. This has come up recently because of the pip 20.0.0 and pip 20.0.1 releases which are causing issues trying to install some packages (and in my local case running
pip install pip<20.0.0
as aCIBW_BEFORE_BUILD
command). It would be nice to have an option to be able to specify a version so that we don't have to install pip multiple times.The text was updated successfully, but these errors were encountered: