[Python-Dev] .pth files are evil

Zooko Wilcox-O'Hearn zooko at zooko.com
Sun May 10 11:41:33 EDT 2009


On May 9, 2009, at 9:39 AM, P.J. Eby wrote:

> It would be really straightforward, though, for someone to  
> implement an easy_install variant that does this.  Just invoke  
> "easy_install -Zmaxd /some/tmpdir packagelist" to get a full set of  
> unpacked .egg directories in /some/tmpdir, and then move the  
> contents of the resulting .egg subdirs to the target location,  
> renaming EGG-INFO subdirs to projectname-version.egg-info subdirs.

Except for the renaming part, this is exactly what GNU stow does.

> (Of course, this ignores the issue of uninstalling previous  
> versions, or overwriting of conflicting files in the target -- does  
> pip handle these?)

GNU stow does handle these issues.

Regards,

Zooko



More information about the Python-list mailing list