Delivery-focussed Elixir, Python, XSL/XQuery, (No)SQL, and Agile consultancy, specialising in content migration, API design, and (micro)services.

LinkedIn Octocat RSS

Quick tip — Installing PyYAML for Jython

PyYAML by default tries to create a C module against the libyaml library, and since Jython can’t use C modules attempting to install PyYAML with Jython fails.

However, you can disable the C module install, like this:

~# wget http://pyyaml.org/download/pyyaml/PyYAML-3.09.tar.gz
~# tar zxf PyYAML-3.09.tar.gz
~# cd PyYAML-3.09
~# jython setup.py --without-libyaml install

Originally posted: Jan 27 2013