With the libyaml use flag disabled you get this in config.log: libyaml is not found or a compiler error: forcing --without-libyaml (if libyaml is installed correctly, you may need to specify the option --include-dirs or uncomment and modify the parameter include_dirs in setup.cfg) However if libyaml is installed and the USE flag is still turned off, the message disappears. What you should do is something like this: src_compile() { distutils_src_compile $(use_with libyaml) } ...I think. (untested)
(In reply to comment #0) > src_compile() { > distutils_src_compile $(use_with libyaml) > } It doesn't work, because distutils_src_compile() uses "$@" as options of "build" command, but setup.py of dev-python/pyyaml supports only global option --with-libyaml / --without-libyaml.
I added support for DISTUTILS_GLOBAL_OPTIONS in distutils.eclass. This bug has been fixed in dev-python/pyyaml-3.09.