On 15.05.23 01:44, Chris Johns wrote:
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.
The current approach with the pickle cache works reasonably fine and
requires not extra packages. I don't think this implementation should be
removed in any case. The support for the CSafeLoader is just about 60
lines of additional code. It would be a nice improvement for systems
supporting this feature. I don't have time to work on adding PyYAML with
libyaml to the RTEMS Tools right now and I think this would open another
maintenance issues. If someone would be unable to get a yaml module with
a CSafeLoader, then he would be no longer able to build RTEMS.
--
embedded brains GmbH
Herr Sebastian HUBER
Dornierstr. 4
82178 Puchheim
Germany
email: sebastian.hu...@embedded-brains.de
phone: +49-89-18 94 741 - 16
fax: +49-89-18 94 741 - 08
Registergericht: Amtsgericht München
Registernummer: HRB 157899
Vertretungsberechtigte Geschäftsführer: Peter Rasmussen, Thomas Dörfler
Unsere Datenschutzerklärung finden Sie hier:
https://embedded-brains.de/datenschutzerklaerung/
_______________________________________________
devel mailing list
devel@rtems.org
http://lists.rtems.org/mailman/listinfo/devel