[issue19610] Give clear error messages for invalid types used for setup.py params (e.g. tuple for classifiers)

Éric Araujo report at bugs.python.org
Sun Dec 3 14:28:53 EST 2017


Éric Araujo <merwok at netwok.org> added the comment:

I am sorry this snowballed.  The intent in my messages here and in my PR review was to exchange a late, unfriendly traceback with a clear, early message, but only for package authors.  I forgot that a Python 3.7 could execute an invalid setup.py from an existing tarball, as Neil pointed with the pip install exifread example.  Even if these packages get PRs to build wheels, it’s still bad to break existing sdists.  +1 to reverting the patch, +1 to reverting the breakage and also fixing the original problem with a warning and explicit conversion.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue19610>
_______________________________________


More information about the Python-bugs-list mailing list