I'm trying to build a PyYAML wheel that leverages libyaml without having to install libyaml as a system shared library for all the services we use. We do have control of the runtime environment (via containers) so we are able to target a fixed version of libyaml/gcc/etc.
Is there any way using the existing build toolchain to set it up so that libyaml should be statically linked instead of dynamically linked and included with the C extension distribution in the binary wheel?