[PATCH 2/5] build: Use CSafeLoader if available

Chris Johns chrisj at rtems.org
Sun May 14 23:44:59 UTC 2023


On 5/5/2023 8:16 pm, Sebastian Huber wrote:
> On 05.05.23 01:38, Chris Johns wrote:
>>> When I install it
>>> through pip, I get the CSafeLoader on my machine. I don't have a libyaml
>>> development package installed.
>> This is what I was not understanding. If it can be loaded in a python.org
>> install on a N2 MacOS with a virtual env then I think we are close to a
>> resolution.
> 
> I tried to understand how the PyYAML package is built. It seems that libyaml and
> its header files need to be installed to use the C bindings.

This is what I thought happened with this package. It depends on the base OS
packaging system. The documentation at
https://pyyaml.org/wiki/PyYAMLDocumentation says:

 $ python setup.py install

 If you want to use LibYAML bindings, which are much faster than the pure
 Python version, you need to download and install LibYAML. Then you may
 build and install the bindings by executing

 $ python setup.py --with-libyaml install

I cannot see if pip has any further detail on the nature of the build it
contains so this is not looking good. This leaves building and installing when
the tools are built by the RSB.

Chris


More information about the devel mailing list