-
-
Notifications
You must be signed in to change notification settings - Fork 89
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
Fixed 'pip install cheroot' on Python 2 #211
Conversation
On Python 2 "pip install cheroot" ends with error: ERROR: more-itertools requires Python '>=3.4' but the running Python is 2.7.15 The reason: more_itertools package from version 6 does not support Python 2.
There is a problem with test 'test_tls_client_auth[2-False-localhost-builtin]'. I think the test's failure is not related with my change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm curious what version of Pip you are using. It should resolve the metadata properly by itself.
@@ -63,7 +63,8 @@ setup_requires = | |||
install_requires = | |||
backports.functools_lru_cache | |||
six>=1.11.0 | |||
more_itertools>=2.6 | |||
more_itertools>=2.6<6; python_version<'3' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The comma is missing
more_itertools>=2.6<6; python_version<'3' | |
more_itertools>=2.6,<6; python_version<'3' |
$ pip --version |
I've updated pip to the newest version (19.1.1) and the issue is still valid. |
Please share the log of that. |
I'm pretty sure you're hitting more-itertools/more-itertools#272 (comment). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awaiting for more details + a syntax error fix
I've found the problem exists if I use my local pypi mirror. |
Installing from local pypi:
|
So the problem is that you don't have a compatible version in your index. Just add proper dists there and you should be fine. |
It seems that this is a problem of dev-server package (devpi/devpi#511) fixed in 4.7.0 version. |
makes sense |
Anyway, thanks for support! |
You're welcome :) |
β What kind of change does this PR introduce?
β What is the current behavior? (You can also link to an open issue here)
On Python 2 "pip install cheroot" ends with error:
ERROR: more-itertools requires Python '>=3.4' but the running Python is 2.7.15
The reason: more_itertools package from version 6 does not support Python 2.
This change isβ