[Python-Dev] PEP 229 checked in

Thomas Wouters thomas@xs4all.net
Sat, 20 Jan 2001 15:30:26 +0100


On Fri, Jan 19, 2001 at 05:06:03PM -0500, Guido van Rossum wrote:

> So instead I added 5 lines to site.py, which tests for
> os.name=='posix', then for sys.path[-1] ending in '/Modules' -- this
> tests only succeeds when running from the build directory.  Then it
> calls distutils.util.get_platform() and uses the result to calculate
> the correct directory name, which is then appended to sys.path.

> Yes, this slows down startup (it imports a large portion of the
> distutils package), but I don't care -- after all this is mostly for
> me so I can play with the interpreter right after I've built it,
> right?

Right. The only downside (as far as I can tell) is that 'python -S' no
longer works, in the build tree. I don't think that's that big a deal, but
it should be documented somewhere, so we don't end up being boggled by it
once we forget about it :)

-- 
Thomas Wouters <thomas@xs4all.net>

Hi! I'm a .signature virus! copy me into your .signature file to help me spread!