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

Use sys_platform instead of platform_system #4007

Merged
merged 1 commit into from
May 9, 2017

Conversation

Lukasa
Copy link
Member

@Lukasa Lukasa commented May 9, 2017

This is more compatible as a marker and so will break fewer people. Potentially resolves #4006.

This is more compatible as a marker and so will break fewer people.
Copy link
Member

@sethmlarson sethmlarson left a comment

Choose a reason for hiding this comment

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

LGTM 🍰

@Lukasa
Copy link
Member Author

Lukasa commented May 9, 2017

I should note that this fix does not entirely remove the issue: sufficiently old pips will still fail to install Requests. We're just moving the goalposts on what counts as "sufficiently old".

@sethmlarson
Copy link
Member

I'm in favor of breaking less people's builds as long as people using really old pip versions are the ones getting broken still. This change will still carry the benefit of getting users of very old pip versions to upgrade, and I actually think that's a positive.

@thieman
Copy link

thieman commented May 9, 2017

sufficiently old pips will still fail to install Requests. We're just moving the goalposts on what counts as "sufficiently old".

@Lukasa are you aware of what the specific pip version requirement would be if this got merged?

@codecov-io
Copy link

Codecov Report

Merging #4007 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #4007   +/-   ##
=======================================
  Coverage   89.74%   89.74%           
=======================================
  Files          15       15           
  Lines        1940     1940           
=======================================
  Hits         1741     1741           
  Misses        199      199

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 508d47d...800a074. Read the comment docs.

@Lukasa
Copy link
Member Author

Lukasa commented May 9, 2017

@thieman I'm not. I think it actually boils down to a setuptools requirement, but setuptools from as early as 2014 should handle this I think.

@Lukasa
Copy link
Member Author

Lukasa commented May 9, 2017

My proposal is that we push a 2.14.1 with this fix, and then see whether things calm down on #4006.

@vphilippon
Copy link

Just to let know I tried with pip 8.0.0 to 8.1.1, and it works.
I also tried with pip 6.0.0, and it works too.
For the cases where the dependency is on setuptools version, I could not test different version so far, sorry.

@Lukasa Lukasa merged commit 636082f into psf:master May 9, 2017
@Lukasa Lukasa deleted the use-more-comaptible-marker branch May 9, 2017 18:56
henn referenced this pull request in henn/hil May 9, 2017
Due to an old pip version, we got bit by the problem
fixed in https://github.com/kennethreitz/requests/pull/4007

This happened in CCI-MOC#767 (though unfortunately the evidence
is gone since I restarted the build).
@ofek
Copy link
Contributor

ofek commented May 9, 2017

@nateprewitt
Copy link
Member

@ofek thanks for pointing this out. It looks like (some or all of) the Travis-CI instances are running on setuptools 12.0.5. While sys_platform was supported then, python_version doesn't seem to have been added until 18.0 (although the change log says 18.5). You'll need to upgrade setuptools on Travis-CI to at least 18.0, or run pip install -U setuptools to get the latest version.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 6, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

requests 2.14.0 cannot be installed using pip < 8.1.2
7 participants