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

Unable to package on Python 3.{10,11,12} with CFFI 1.16 on macOS 14.4 with Clang 15 #95

Open
mpasternak opened this issue Mar 22, 2024 · 0 comments

Comments

@mpasternak
Copy link

mpasternak commented Mar 22, 2024

Hello,

TL;DR:

I am unable to build pyheif using python setup.py build (fails on cffi_modules) on my macOS Sonoma 14.4, but everything is fine if I compile by hand (calling python libheif/libheif_build.py then copying _libheif_cffi* from the root dir directly to the virutalenv works fine and gives good results - HEIC files are being open properly).

I will edit this shortly to add a link to my repo which kindly creates a hack for this. Maybe I will even upload some binary packages to PyPI.

Full version:

This looks like setuptools or CFFI setuptools extension bug to me, so this should not be actually reported here. But where? I have no idea, I have no experience of talking to setuptools people, I am posting this in hope "somebody does something" as in contacting some proper maintainer who would show the way, what are we doing wrong. Or, perhaps a version or two passes and somebody fixes this.

This is the build log:
pyheif-0.7.1-build-log-fail-python3.12-macos14.4-libffi1.17.txt

The repo

Please go visit my fork: https://github.com/mpasternak/pyheif

Type make all, see dist directory then.

The temporary fix

When running on macOS, you can try installing binary packages with:

pip install pyheif-iplweb

This will install a versioned package. Version number of the package means: pyheif-iplweb-0.7.1.dev1176. This means it was build from pyheif 0.7.1 and libheif 1.17.6

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

1 participant