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

Define a couple of declarations as opaque #464

Merged
merged 1 commit into from
Apr 28, 2024

Conversation

kleisauke
Copy link
Member

Resolves: #459.

@kleisauke
Copy link
Member Author

This also fixes the warnings mentioned in #47 (comment). I'm able to compile with CFLAGS="-Werror" locally:

$ CFLAGS="-Werror" CC=clang pip3 install . -v --break-system-packages
[...]
clang -shared -Werror build/temp.linux-x86_64-cpython-312/build/temp.linux-x86_64-cpython-312/_libvips.o -L/usr/lib64 -lvips -lgio-2.0 -lgobject-2.0 -lglib-2.0 -o build/lib.linux-x86_64-cpython-312/_libvips.abi3.so
installing to build/bdist.linux-x86_64/wheel
[...]
Successfully built pyvips
Installing collected packages: pyvips
Successfully installed pyvips-2.2.3
$ python -c "import pyvips; import _libvips; assert _libvips.lib.vips_version(0) == 8; print(pyvips.API_mode)"
True

Any testing on macOS would be very helpful.

@pasqualesalza
Copy link

pasqualesalza commented Apr 23, 2024

I confirm this works on my macOS 14.4.1!

} VipsProgress;

typedef struct _VipsObject {
'''
typedef ... VipsObject;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I had no idea ... worked for typedefs as well as defines! Nice.

@jcupitt jcupitt merged commit 6c983c3 into libvips:master Apr 28, 2024
6 checks passed
@jcupitt
Copy link
Member

jcupitt commented Apr 28, 2024

I made v2.2.3 including this fix, thank you Kleis.

I'll try to look again at your nice setuptools replacement for a v3 pyvips.

@kleisauke kleisauke deleted the vdecls-opaque branch April 28, 2024 12:49
@kleisauke kleisauke mentioned this pull request Jul 15, 2024
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

Successfully merging this pull request may close these issues.

Error installing pyvips on Mac OS
3 participants