[Distutils] Pypy and site.py and makepath

Guido van Rossum guido at python.org
Sat Mar 13 00:35:02 CET 2010


On Fri, Mar 12, 2010 at 12:20 PM, Lennart Regebro <regebro at gmail.com> wrote:
> What exactly is site.py for? I tried installing Distribute with PyPy,
> and it fails, because if you start it, it runs site.py, and site.py
> uses makepath, but doesn't import or define it, so it fails.

Eh? I see

def makepath(*paths):
    dir = os.path.abspath(os.path.join(*paths))
    return dir, os.path.normcase(dir)

around line 75 of site.py in the python 2.6 source tree. Maybe PyPy
has its own broken copy?

> Running the tests with python2.6 and it seems site.py is never run,

How do you know?

> but removing it makes the tests fail.
>
> Any insight into this?

-- 
--Guido van Rossum (python.org/~guido)


More information about the Distutils-SIG mailing list