Gabriel Genellina wrote:
> En Sun, 27 May 2007 12:19:03 -0300, Steven Bethard 
> <[EMAIL PROTECTED]> escribió:
> 
>> Also, I couldn't get the StringIO code from there to work:
>>
>>  >>> import StringIO
>>  >>> content = open('argparse-0.8.0.win32.exe').read()
> 
> Use open("...","rb").read() - the "b" is important on Windows.

Ahh, great.  Thanks.

So any ideas why distutils is generating a bdist_wininst installer with 
file names like:

     lib/argparse-0.8.0-py2.5.egg-info
     lib/argparse.py

instead of what John Machin had:

     PURELIB/xlrd-0.6.1a4-py2.5.egg-info
     PURELIB/xlrd/biffh.py

The ones with 'lib' instead of 'PURELIB' will get rejected by the 
safe_zipnames regular expression in verify_filetype.py:

     re.compile(r'(purelib|platlib|headers|scripts|data).+', re.I)

Is there something I need to do when running 'setup.py bdist_wininst' to 
get 'PURELIB' instead of 'lib'?

STeVe
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to