USE="-doc examples {-test}" PYTHON_TARGETS="python2_7 (-python3_2) python3_3 python3_4" dev-lang/python-2.7.8 dev-lang/python-3.3.5-r1 dev-lang/python-3.4.2 Python 3.3 gets legacy named byte-compiled files as well as Python 3 style: $ find /usr/lib64/python3.3/site-packages/dbus/ -name __init__* /usr/lib64/python3.3/site-packages/dbus/__init__.pyo /usr/lib64/python3.3/site-packages/dbus/__pycache__/__init__.cpython-33.pyc /usr/lib64/python3.3/site-packages/dbus/__pycache__/__init__.cpython-33.pyo /usr/lib64/python3.3/site-packages/dbus/__init__.pyc /usr/lib64/python3.3/site-packages/dbus/__init__.py ... Python 3.4 gets legacy named byte-compiled files and none for Python 3: $ find /usr/lib64/python3.4/site-packages/dbus/ -name __init__* /usr/lib64/python3.4/site-packages/dbus/__init__.pyo /usr/lib64/python3.4/site-packages/dbus/__init__.pyc /usr/lib64/python3.4/site-packages/dbus/__init__.py ... (Python 2.7 is fine: $ find /usr/lib64/python2.7/site-packages/dbus/ -name __init__* /usr/lib64/python2.7/site-packages/dbus/__init__.pyo /usr/lib64/python2.7/site-packages/dbus/__init__.pyc /usr/lib64/python2.7/site-packages/dbus/__init__.py ...)
Iirc this is due to an old automake/py-compile being used. Using eautoreconf in the ebuild should fix the issue.
With eautoreconf .pyo and .pyc files are removed for python-3.3 but not for 2.7... is that what it's expected?
The pyc and pyo files should be installed for all impls. With python 2.7, they should be installed alongside the py files. With python 3.3 and 3.4, they should be installed in the __pycache__ directory. eautoreconf works for me. + 23 Nov 2014; Mike Gilbert <floppym@gentoo.org> dbus-python-1.2.0.ebuild: + Update py-compile to fix pyc file installation, bug 529502.
Thanks for the explanation... I am not sure if maybe python eclasses could show a eqawarn message when that files are not installed at proper place... otherwise it's a bit hard to remember to check for them manually on every package :/
We could do a install-qa-check.d for that, I think.
+*dbus-python-1.2.0-r1 (23 Nov 2014) + + 23 Nov 2014; Mike Gilbert <floppym@gentoo.org> +dbus-python-1.2.0-r1.ebuild, + -dbus-python-1.2.0.ebuild: + Revbump for last change.