This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.araujo
Recipients alexis, eric.araujo, srid, tarek
Date 2011-06-04.15:39:03
SpamBayes Score 1.7147888e-09
Marked as misclassified No
Message-id <1307201943.95.0.121931288732.issue8286@psf.upfronthosting.co.za>
In-reply-to
Content
There is a simple way to fix this: change one line in sdist to catch ValueErrors in addition to DistutilsTemplateError.  Users will get a on-line warning message with the ill-formed manifest line number instead of a wall of traceback.

This is clearly a bug fix IMO: it is documented that distutils code can raise standard exceptions in addition to Distutils* errors, so here it’s not a new feature but a fix for sdist.

(Another way to fix this, would be to catch ValueError raised by convert_path in filelist and wrap it in a DistutilsTemplateError, but I’m not sure it really buys us anything.  Maybe it would be the better fix for Packaging, where the Manifest class is intended for public use.)
History
Date User Action Args
2011-06-04 15:39:04eric.araujosetrecipients: + eric.araujo, tarek, srid, alexis
2011-06-04 15:39:03eric.araujosetmessageid: <1307201943.95.0.121931288732.issue8286@psf.upfronthosting.co.za>
2011-06-04 15:39:03eric.araujolinkissue8286 messages
2011-06-04 15:39:03eric.araujocreate