]> granicus.if.org Git - python/commit
Fix missing imports in setup scripts generated by packaging (#13205).
authorÉric Araujo <merwok@netwok.org>
Fri, 21 Oct 2011 04:27:06 +0000 (06:27 +0200)
committerÉric Araujo <merwok@netwok.org>
Fri, 21 Oct 2011 04:27:06 +0000 (06:27 +0200)
commitf89ebdc358402588db893e18e4dd31bc8272b7bf
tree99c00698f86d45cc7d747e6d15be3528e0d02db4
parent3bb8be6d78130dfcf49c4860f0009300508ff92b
Fix missing imports in setup scripts generated by packaging (#13205).

I’ve made more edits than the bug report suggested to make sure the
generated setup script is compatible with many Python versions; a
comment in the source explains that in detail.

The cfg_to_args function uses old 2.x idioms like codecs.open and
RawConfigParser.readfp because I want the setup.py generated by packaging and
distutils2 to be the same.  Most users won’t see the deprecation warning and I
ignore it in the test suite.

Thanks to David Barnett for the report and original patch.
Lib/packaging/tests/test_util.py
Lib/packaging/util.py
Misc/ACKS