Re: Non-unique dirs in sys.path

2015-01-10 Thread Terry Reedy
On 1/9/2015 8:14 AM, Gisle Vanem wrote: I'm having some trouble understanding why my Python 2.7.9 has the '%PYTHONHOME%\lib\site-packages' listed multiple times. I cooked up this .bat file to demonstrate the issue: @echo off setlocal set PYTHONPATH= python -c import sys;

Re: Non-unique dirs in sys.path

2015-01-09 Thread Ian Kelly
On Fri, Jan 9, 2015 at 6:14 AM, Gisle Vanem gva...@yahoo.no wrote: Why are these listed twice with different casing? One would assume that Python on Win32 would be case-insensitive. Some .pth-file to blame here? I checked my own Python 2.7 installation and discovered that I have the same

Re: Non-unique dirs in sys.path

2015-01-09 Thread Ian Kelly
On Fri, Jan 9, 2015 at 2:24 PM, Gisle Vanem gva...@yahoo.no wrote: Ian Kelly wrote: I checked my own Python 2.7 installation and discovered that I have the same problem, although without the different casing. Perusing the .pth files in site-packages turns up setuptools.pth, which just

Re: Non-unique dirs in sys.path

2015-01-09 Thread Gisle Vanem
Ian Kelly wrote: I checked my own Python 2.7 installation and discovered that I have the same problem, although without the different casing. Perusing the .pth files in site-packages turns up setuptools.pth, which just contains the site-packages path. Removing that file solves the issue for me.

Non-unique dirs in sys.path

2015-01-09 Thread Gisle Vanem
I'm having some trouble understanding why my Python 2.7.9 has the '%PYTHONHOME%\lib\site-packages' listed multiple times. I cooked up this .bat file to demonstrate the issue: @echo off setlocal set PYTHONPATH= python -c import sys; [sys.stdout.write('%%s\n' %% p) for (i,p) in