I've converted the ebuild to python-single-r1 but a number of Python-related issues remained: 1. files are installed to /usr/lib/python2.7 instead of /usr/lib64. Looks like upstream is doing some bad guessing instead of asking Python nicely for the path. Possibly could be solved by passing $(python_get_sitedir) to a variable in Makefile. 2. Files in site-packages are byte-compiled to .pyc but not optimized to .pyo. Once you fix the install path, you can use python_optimize to do the optimization at ebuild level. 3. Files in /usr/share/createrepo are not compiled at all. python_optimize could solve this, with appropriate path given. 4. Python scripts don't relly belong to /usr/share. Maybe /usr/lib/${PN} (the 'new' libexec) or /usr/libexec/${PN}... I haven't check for non-obvious issues, just listing those obvious :).
Thanks! fixed all but (5), as it is bad package and hardcode paths, I am not interested to patch it... I am just glad it is still usable... there is no hope that upstream will fix anything. I see there is a new C implementation[1], which might be better. [1] https://github.com/Tojaj/createrepo_c
Thanks a lot :).