-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
pip install awscli fails for older setuptools versions #6094
Comments
Apparently 'pip install awscli --upgrade' downloads sdist package (awscli-1.19.50.tar.gz) instead of ( awscli-1.19.50-py2.py3-none-any.whl. This is for pip 20.3.4 on RHEL7 . Wheel package is being handle fine. |
This is an issue for me as well on an alpine image:
|
Hi @amopportunities, your issue is actually unrelated to setuptools. Cython was added as a build-time dependency of We can discuss the issue more, but it would be best to open a new issue to avoid moving the conversation from the original topic here. |
Hi @amopportunities, You can try to force a specific version of PyYAML we use the following one before installing the aws-cli and it worked
|
All the github actions related to awscli usage are affected in the same way. |
We also had this issue. A fix for alpine docker images is to install gcc, alpine-sdk, and python-dev |
@Frachuk Excellent, you just saved me! |
It worked for me. Thanks! |
Btw, Apparently specific a certain version of the PYYAML is no longer necessary, we delete
on our pipelines and seems that the issue that was before is already solved. |
Yes, the appropriate tracking issue (#6096) has the details. An update was made to |
Hi @kishgau, To answer your original question, the issue you're hitting shouldn't be new in CLI 1.19.50. The underlying issue appears to be the same as #6092 and #6064. We use environment markers in our installation requirements to appropriately split requirements between Python 2.7 and Python 3.6+. These have been supported by Python's packaging infrastructure since 2015 and are used in our dependencies as well.
This upgrade for Please let us know if you have more questions, thanks! |
Thanks very much @nateprewitt . I can confirm that this is no longer an issue after upgrading setuptools. |
|
Confirm by changing [ ] to [x] below to ensure that it's a bug:
Describe the bug
'pip install awscli --upgrade' fails for older setuptools versions
awscli 1.19.50+
Platform/OS/Hardware/Device
RHEL7
To Reproduce (observed behavior)
Use and older setuptools versions ( e.g. 0.9.8)
Expected behavior
pip install awscli shouldn't fail with older setup tools version.
Logs/output
error in aswcli setup command: 'install_requires' must be a string or list of strings containing valid/project version requirement specifiers.
Additional context
Workaround: upgrading setuptools to latest version
The text was updated successfully, but these errors were encountered: