[issue5411] add xz compression support to shutil

Éric Araujo report at bugs.python.org
Mon Feb 6 18:16:12 CET 2012


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

I should add that a doc update will be part of the next patch.

In parallel, I’ve also started updating packaging to add lzma support to the bdist command, but the situation is very disappointing: tarfile knows what format it supports, shutil has its own list, and packaging has a few duplicates too!  Ideally, tarfile should have an attribute to expose what compression formats are available, then shutil would reuse that, and packaging would just call shutil.  (I’m not even talking about the duplication in the doc.)  If you agree with the general idea, I’ll open reports to a) add the attribute to tarfile b) rework the (luckily internal) registries in shutil to stop being hard-coded c) remove packaging’s registries.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5411>
_______________________________________


More information about the Python-bugs-list mailing list