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

Add option to specify pip versions on windows #252

Closed
wants to merge 1 commit into from

Conversation

mtreinish
Copy link
Contributor

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 #250

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
@YannickJadoul
Copy link
Member

On an initial look, this is quite specific. Why ónly Windows, and ónly pip?
Personally, I think I would prefer some kind of more general mechanism, like CIBW_PIP_CONSTRAINT discussed in #250 and #239 (or something similar, that doesn't just limit itself to the initial installation of pip on Window).

@joerick
Copy link
Contributor

joerick commented Jan 31, 2020

Thanks for this @mtreinish ! I'm working on something that achieves this more generally in #256, so closing this in favour of that.

@joerick joerick closed this Jan 31, 2020
@mtreinish mtreinish deleted the windows-pip-version branch May 29, 2020 11:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add option to specify pip version on windows
3 participants