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

Why do I suddenly need libffi-dev, file, and make? #1566

Closed
josephcsible opened this issue Apr 14, 2020 · 2 comments
Closed

Why do I suddenly need libffi-dev, file, and make? #1566

josephcsible opened this issue Apr 14, 2020 · 2 comments

Comments

@josephcsible
Copy link

josephcsible commented Apr 14, 2020

docker run python:3.7.7-alpine3.11 sh -c 'apk --no-cache add gcc libc-dev; pip install --no-cache-dir gevent==1.5.0'

When I run that, it fails, with the important part of the error being fatal error: ffi.h: No such file or directory. I already know the solution for this: install libffi-dev. However, there's one thing I don't know: if I install gevent 1.4.0 instead of 1.5.0, then it works fine even without libffi-dev. What changed in 1.5 such that libffi-dev is now a requirement? If it's in the changelog, I didn't see it.

(And once that error is gone, I get other errors unless I also install file and make, which I similarly didn't need before.)

@josephcsible josephcsible changed the title Why do I suddenly need libffi-dev? Why do I suddenly need libffi-dev, file, and make? Apr 14, 2020
@jamadden
Copy link
Member

Most likely is the explicit inclusion of pyproject.toml in gevent's source distribution (binary distributions aren't permitted for alpine linux, only for distributions based on glibc), which is essentially the modern version of setup_requires. Implicit source dependencies are now explicit.

As for file and make, it just depends on what the third-party configure scripts do. I have no control over that.

@chrisinmtown
Copy link

Thanks for opening this issue and listing the new requirements libffi-dev, file, make. My gevent install failed similarly on alpine, altho with python 3.8. Your note let me repair locally in minutes instead of days :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants