Author marcusva
Recipients marcusva
Date 2014-01-26.14:20:14
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1390746014.88.0.900467086198.issue20397@psf.upfronthosting.co.za>
In-reply-to
Content
Using the --record argument with distutils' install command currently assumes that all .py files can be compiled (and optimized) successfully. 

If this is not the case for whatever reason, you end up with invalid entries in the record list. install_lib._bytecode_filenames() should verify, if the file could be created successfully (by e.g. checking for its existence) or the util.byte_compile() function should return a value that indicates, if the byte-compiled (or optimized) file could be created, so that the subsequent call to _bytecode_filenames() receives a list with valid entries.

The issue can be recreated with e.g. http://pypi.python.org/pypi/Products.PasswordResetTool, which will create invalid entries for skins/PasswordReset/pwreset_constructURL.py,
which acts as template/fragment.
History
Date User Action Args
2014-01-26 14:20:14marcusvasetrecipients: + marcusva
2014-01-26 14:20:14marcusvasetmessageid: <1390746014.88.0.900467086198.issue20397@psf.upfronthosting.co.za>
2014-01-26 14:20:14marcusvalinkissue20397 messages
2014-01-26 14:20:14marcusvacreate