[Distutils] eggs end up at end of sys.path

David Handy david at handysoftware.com
Wed Nov 9 05:27:57 CET 2005

On Tue, Nov 08, 2005 at 10:04:19PM -0500, Phillip J. Eby wrote:
> At 09:41 PM 11/8/2005 -0500, David Handy wrote:
> >I created a fairly minimal project which I have attached as
> >MyProject-0.1.zip which demonstrates the problem. On Linux, it puts the egg
> >in the proper place in sys.path (ahead of the PYTHONPATH directory), but on
> >Windows it puts the egg file on the end. See the README.txt file for
> >example output. (I have seen this problem on both Win98 and WinXP.)
> Based on the contents of README.txt, it's clearly a case-sensitivity issue, 
> as 'c:\\home\\lib\\python\\myproject-0.1-py2.4.egg' doesn't start with 
> 'C:\\home\\lib\\python' (lowercase vs. uppercase C:).
> I believe the correct fix therefore is for Distribution.insert_on() to 
> normalize the sys.path entries before comparison.  Please give revision 
> 41408 a try.  ("easy_install setuptools==dev" should upgrade you.)

I ended up grabbing revision 41411. It worked great, thanks! Now the egg
file appears before its containing directory, on both Linux and Windows.

I'm going to have a lot of fun with setuptools; it meets some
packaging/deployment needs that I have right now.

Thanks again,
David Handy
Computer Programming is Fun!
Beginning Computer Programming with Python

More information about the Distutils-SIG mailing list