-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Cannot install a wheel built from an extra_requires with environment markers #3958
Comments
That's very weird. I tried switching linux to double quotes, either way the code translates |
Does it happen on |
I have a wheel built with many environment markers in extras (https://github.com/zodb/relstorage/blob/master/setup.py#L117) and it seems to install OK:
I use a different quoting convention: ":python_full_version > '2.7.8'": [
'ZODB >= 4.4.2',
'ZEO >= 4.2.0',
],
":python_full_version < '2.7.9'": [
# We must pin old versions prior to 2.7.9 because ZEO
# 5 only runs on versions with good SSL support.
'ZODB >= 4.4.2, <5.0',
'ZEO >= 4.2.0, <5.0'
], |
* the syntax for markers was wron (it should have been Linux, with an uppercase L. Thanks to @agronholm for this * This means that pypa/pip#3958 is not a bug after all Signed-off-by: Philippe Ombredanne <pombredanne@nexb.com>
Sorry for the noise. Thanks to @agronholm for spotting the issue. It should have using "Linux" and not "linux" . I switched to using platform_system markers too in aboutcode-org/scancode-toolkit@e229862 and all is well . |
Yes, the issue happens on master.
That wheel was built from a checkout of https://github.com/pombredanne/setuptool-782 and the wheel content was validated in pypa/setuptools#782. I suggest re-opening this ticket. |
based on @jaraco investigation it makes sense to reopen. |
I think it's fixed in packaging, but I need to cut a release of that and pull it into pip. |
@dstufft if I can help with testing, please ping me here |
Description:
A plain wheel built with
python setup.py bdist_wheel
and https://github.com/nexB/scancode-toolkit/blob/develop/setup.py#L111 cannot be installed by pip.The built wheel is there https://github.com/pombredanne/conan/blob/master/thirdparty/prod/scancode_toolkit-2.0.0.dev1-py2-none-any.whl
I am using all the latest venv, pip, wheel and setuptools FWIW
note: this is all about extra_requires and environment markers and these extra_requires are to work around some cross os build issue on the latest lxml.
Some possibly related bugs:
#3893 #3829
What I've run:
And I get this error when I pip install the wheel
The text was updated successfully, but these errors were encountered: