Message 113516 - Python tracker (original) (raw)

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 ..." ().