Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 616594 - dev-lang/python-3.6.1: distutils no longer build both optimization levels
Summary: dev-lang/python-3.6.1: distutils no longer build both optimization levels
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-04-25 14:51 UTC by Michał Górny
Modified: 2017-04-25 22:22 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-25 14:51:06 UTC
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.
Comment 1 Mike Gilbert gentoo-dev 2017-04-25 20:20:57 UTC
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
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-25 22:03:03 UTC
Oh, nice, thanks. Let's see if it applies to 3.6.1...
Comment 3 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-04-25 22:22:12 UTC
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