The print syntax used in python-distutils-ng_src_install is invalid with Python 3, and bytecode isn't generated for packages using the eclass. The patch attached fixes that by just using the print() syntax, which in this simple case works identically for Python 2.5+. Thanks, James Reproducible: Always
Created attachment 310289 [details, diff] Fix bytecode generation for Python 3
If someone needed compatibility with ancient Python versions, I guess sys.stdout.write() could be used instead.
> If someone needed compatibility with ancient Python versions, I guess > sys.stdout.write() could be used instead. Just in case my original comment was a little misleading. The `print(" ".join(sys.path))` version works right back to 2.0, when str.join was introduced. What I really meant was "my change works correctly with all Python versions currently in the tree."
Thank you for the report and patch James. I have committed your solution.