-
-
Notifications
You must be signed in to change notification settings - Fork 280
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
dependency on typed_ast in 2.0.0 breaks installation on Python 3 when a compiler is not available #597
Comments
This was already mentioned in pylint-dev/pylint#2291, where the culprit was also alpine. But you said an interesting thing in that we can make |
Here's an alpine Dockerfile which works around this issue by telling pip that the
It might help using a container that's based of off glibc instead of musl. |
This seems to no longer be an issue with astroid v2.3.0+ and Python 3.8: $ docker run -it --rm python:3.8-alpine /bin/sh
/ # pip install astroid
[...]
Installing collected packages: wrapt, six, lazy-object-proxy, astroid
Successfully installed astroid-2.3.2 lazy-object-proxy-1.4.3 six-1.12.0 wrapt-1.11.2
/ # Looks like maybe |
Ah, indeed, from reading #675 it seems |
@hairyhenderson |
Closing as we won't invest the time to fix this for a release we are no longer supporting in the somewhat near future. |
Steps to reproduce
docker run -i -t python:3.6-alpine /bin/sh
)pip install astroid
Current behavior
Installation fails:
Expected behavior
Installs as normal, like with Python 2
I found this when trying to install Pylint in a docker container in CI.
I understand that 2.0.0 is a 'major' change so this might be expected behaviour, but it means that I either have to lock to a version
astroid<2
or install a compiler into the docker container, both of which are not ideal. Is there some way to install this (and by extension Pylint) without using the typed_ast module?The text was updated successfully, but these errors were encountered: