multi-build / docker-images

BSD 2-Clause "Simplified" License
1 stars 8 forks source link

Added --with-shared when compiling on Alpine #30

Closed radarhere closed 2 years ago

radarhere commented 2 years ago

Trying to use the alpine image for pillow-wheels, I hit

ImportError: Error loading shared library libffi.so.7: No such file or directory (needed by /usr/lib/python3.10/lib-dynload/_ctypes.cpython-310-x86_64-linux-gnu.so)

Googling, I found this error occurring for another user with Python on Alpine - https://github.com/jfloff/alpine-python/issues/48. This was solved by https://github.com/jfloff/alpine-python/commit/2682e394125fe0cf57cb12720ba863e3a79a4557, using --with-shared.

mattip commented 2 years ago

CI is failing.

Did you get very far with multibuild and github actions? I started a PR at MacPython/openblas-libs#73 but it is not choosing the correct docker image, it is looking for docker_image=quay.io/pypa/manylinux_1_1_x86_64. I guess I can wait for a PR to pillow-wheels and then copy it ...

radarhere commented 2 years ago

I've created https://github.com/mattip/openblas-libs/pull/2. You can see it running at https://github.com/radarhere/openblas-libs/runs/5582926768

radarhere commented 2 years ago

For the record, my alternative solution to this problem was to create PRs adjusting Pillow (https://github.com/python-pillow/Pillow/pull/6141) and setuptools (https://github.com/pypa/setuptools/pull/3178) to no longer require ctypes on Linux.

radarhere commented 2 years ago

This was later properly fixed in #32