[issue9548] locale can be imported at startup but relies on too many library modules

STINNER Victor report at bugs.python.org
Tue Aug 10 11:44:50 CEST 2010


STINNER Victor <victor.stinner at haypocalc.com> added the comment:

> Indeed, but since it calls sysconfig.get_platform(), I'm not sure how
> much code would need to be rewritten in C.

Oh, the function is prefixed by the following comment:

# XXX This should not be part of site.py, since it is needed even when
# using the -S option for Python.  See http://www.python.org/sf/586680
def addbuilddir():

Issue #586680 was closed as wontfix.

--

Oh yes, sysconfig.get_platform() is complex :-/

Brett wrote "If we think once can reliably add the directory based purely on whether it starts with "build/lib.", and ..." (msg73411).

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9548>
_______________________________________


More information about the Python-bugs-list mailing list