[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread Christian Heimes
Christian Heimes added the comment: What's your platform, Inada? Are you running macOS? I optimized site.py for Linux and BSD users a couple of years ago. -- ___ Python tracker

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___

[issue28637] Python startup performance regression

2017-02-17 Thread Christian Heimes
Changes by Christian Heimes : -- nosy: +christian.heimes ___ Python tracker ___ ___

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread STINNER Victor
STINNER Victor added the comment: Serhiy collected interesting numbers, copy/paste of this message: http://bugs.python.org/issue28637#msg280380 On my computer: Importing empty module: 160 us Creating empty class: 30 us Creating empty function: 0.16 us Creating empty Enum/IntEnum: 125/150 us

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread STINNER Victor
STINNER Victor added the comment: Instead of using slow sysconfig and loading the big _sysconfig_data dictionary in memory, would it be possible to extract the minimum set of sysconfig needed by the site module and put it in a builtin module? In site.py, I only found 4 variables: from

[issue26788] test_gdb fails all tests on a profile-opt build configured --with-lto

2017-02-17 Thread STINNER Victor
STINNER Victor added the comment: +@unittest.skipIf(python_is_optimized(), + "Python was compiled with optimizations") class PrettyPrintTests(DebuggerTests): I disagree with this skip. I just compiled Python with "./configure" and GCC: these tests pass. Except of one buildbot,

[issue29585] site.py imports relatively large `sysconfig` module.

2017-02-17 Thread INADA Naoki
New submission from INADA Naoki: site.py uses sysconfig (and sysconfigdata, _osx_support) module for user-site package. But sysconfig module is not so lightweight, and very rarely used. Actually speaking, only tests and distutils uses sysconfig in stdlibs. And it takes about 7% of startup

[issue29583] Python 3.6 won't install on Windows 2012 R2

2017-02-17 Thread Lane Campbell
Lane Campbell added the comment: Thanks Eryk, in case this helps anyone else the system is a new install of Windows 2012 R2 as of this week that I updated with all applicable Windows updates. I tried your approach and succeeded after got the following for two of your packages: KB2919442 -

[issue26788] test_gdb fails all tests on a profile-opt build configured --with-lto

2017-02-17 Thread INADA Naoki
INADA Naoki added the comment: LGTM, but would you send pull request on Github? -- nosy: +inada.naoki ___ Python tracker ___

[issue26787] test_distutils fails when configured --with-lto

2017-02-17 Thread INADA Naoki
INADA Naoki added the comment: Would you send pull request on Github? -- ___ Python tracker ___ ___

<    1   2