Comment 14 for bug 383171

Revision history for this message
Mike Bayer (zzzeek) wrote :

I can reproduce it, and even get an idea partially for what's going on, by running "easy_install" on the source .tar.gz of pytz. I placed a pdb inside of setup.py when the files are located, and made a new "dist" file. I verified that the "US" files are in fact in the .tar.gz I created. But when running easy_install, I get an output like this:

classics-MacBook-Pro:pytz-2010h classic$ easy_install dist/pytz-2010h.tar.gz
install_dir /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/
Processing pytz-2010h.tar.gz
Running pytz-2010h/setup.py -q bdist_egg --dist-dir /var/folders/bv/bvGj7UN02RWNJ++8ZRcrpU+++TI/-Tmp-/easy_install-hmAoDz/pytz-2010h/egg-dist-tmp-y3lhzl
> /private/var/folders/bv/bvGj7UN02RWNJ++8ZRcrpU+++TI/-Tmp-/easy_install-hmAoDz/pytz-2010h/setup.py(43)<module>()
-> basepath = dirpath.split(os.path.sep, 1)[1]
(Pdb) os.listdir(os.path.join('pytz', 'zoneinfo', 'US'))
[]

If I peek into the tmp directory, I can see that the "US" folder is blank, that's what I have above with pdb and its also what I see when I look in the tmp directory from the outside. Its very strange - as far as I can tell, the issue here is occurring when setuptools does whatever it does to untar pytz-2010h.tar.gz into the tmp directory - files are just lost, seemingly randomly. Seems like a setuptools bug, actually. (directories named "US" ? directories that are all capital letters ? some other weird thing ?)