[issue19325] _osx_support imports many modules

2017-07-03 Thread STINNER Victor
STINNER Victor added the comment: > FYI, issue29585 removes _osx_support dependency from site.py Done: Lib/site.py doesn't import _osx_support anymore. So I close this issue. -- resolution: -> fixed stage: needs patch -> resolved status: open -> closed

[issue19325] _osx_support imports many modules

2017-07-03 Thread STINNER Victor
Changes by STINNER Victor : -- resolution: fixed -> out of date ___ Python tracker ___

[issue19325] _osx_support imports many modules

2017-06-28 Thread INADA Naoki
INADA Naoki added the comment: FYI, issue29585 removes _osx_support dependency from site.py -- nosy: +inada.naoki ___ Python tracker ___

[issue19325] _osx_support imports many modules

2014-07-26 Thread Ronald Oussoren
Ronald Oussoren added the comment: The use of context lib in _read_output should not be necessary anymore as file objects and NamedTemporaryFile objects already are context managers with the right semantics. I'm not sure how to avoid the import of tempfile other than adding a minimal

[issue19325] _osx_support imports many modules

2013-10-22 Thread Esa Peuha
Esa Peuha added the comment: Actually Lib/_osx_support.py directly imports only five modules: os, re and sys at top level, and contextlib and tempfile in _read_output(). These last two aren't really needed at all, and there's no point even trying to avoid importing os and sys, so the only

[issue19325] _osx_support imports many modules

2013-10-22 Thread Christian Heimes
Christian Heimes added the comment: For distutils function you can move the import of re inside the function body. It's not elegant but it does the trick w/o much slowdown or inconveniences. -- ___ Python tracker rep...@bugs.python.org

[issue19325] _osx_support imports many modules

2013-10-22 Thread Ned Deily
Ned Deily added the comment: Yes, there are various tricks to be done. I have another solution in mind that should eliminate the use re altogether for most cases. (BTW, _osx_support was implemented to centralize functions in anticipation of the introduction of distutils2/packaging in Python

[issue19325] _osx_support imports many modules

2013-10-21 Thread Christian Heimes
New submission from Christian Heimes: On Mac OS X the site module imports sysconfig which imports _osx_support which in turn imports several more modules like the re module. More modules == slower startup. See #19205 for background information on the issue. -- assignee: ronaldoussoren

[issue19325] _osx_support imports many modules

2013-10-21 Thread STINNER Victor
Changes by STINNER Victor victor.stin...@gmail.com: -- nosy: +haypo ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19325 ___ ___ Python-bugs-list

[issue19325] _osx_support imports many modules

2013-10-21 Thread Ned Deily
Changes by Ned Deily n...@acm.org: -- assignee: ronaldoussoren - ned.deily nosy: +ned.deily ___ Python tracker rep...@bugs.python.org http://bugs.python.org/issue19325 ___