On 3.5: writing byte-compilation script '/tmp/portage/dev-python/lit-9999/temp/tmpv9o4u0di.py' /usr/bin/python3.5 -O /tmp/portage/dev-python/lit-9999/temp/tmpv9o4u0di.py removing /tmp/portage/dev-python/lit-9999/temp/tmpv9o4u0di.py writing byte-compilation script '/tmp/portage/dev-python/lit-9999/temp/tmpx19wnogy.py' /usr/bin/python3.5 -OO /tmp/portage/dev-python/lit-9999/temp/tmpx19wnogy.py removing /tmp/portage/dev-python/lit-9999/temp/tmpx19wnogy.py On 3.6: writing byte-compilation script '/tmp/portage/dev-python/lit-9999/temp/tmpht6sd3il.py' /usr/bin/python3.6 /tmp/portage/dev-python/lit-9999/temp/tmpht6sd3il.py removing /tmp/portage/dev-python/lit-9999/temp/tmpht6sd3il.py And it's not just different call -- opt-2 cache files are written, opt-1 are not. We need to figure out wtf, and either patch it back in, or update the eclass not to do that in python_optimize.
Our python-3.5 ebuild applies a patch you created for this. 3.6 does not apply said patch. https://bugs.gentoo.org/show_bug.cgi?id=585060 http://bugs.python.org/issue27226
Oh, nice, thanks. Let's see if it applies to 3.6.1...
commit 713d41deaa6605c092ca40c2dafcd671be51898c Author: Michał Górny <mgorny@gentoo.org> AuthorDate: Wed Apr 26 00:05:28 2017 Commit: Michał Górny <mgorny@gentoo.org> CommitDate: Wed Apr 26 00:20:10 2017 dev-lang/python: Forward-port the distutils -OO patch to 3.6, #616594