[Python-Dev] Enhancing the shutil module

Tarek Ziadé ziade.tarek at gmail.com
Sun Jan 17 23:09:29 CET 2010

On Sun, Jan 17, 2010 at 10:50 PM, Sridhar Ratnakumar
<sridharr at activestate.com> wrote:
> Will it also allow decompression of the said archive types?

No but it would make sense having this one as well.
Distribute/Setuptools' "unpack_archive" (used by easy_install) was
implemented using the same principle as Distutils' "make_archive".

I can add it as well while I am at it : it has been successfully used
for years by easy_install.

> Distribute has
> some utility code to handle zip/tar archives. So does PyPM. This is because
> the `tarfile` and `zipfile` modules do not "just work" due to several
> issues.
> See http://gist.github.com/279606
> Take note of the following in the above code:
>  1) _ensure_read_write_access
>  2) *File.is_valid
>  3) ZippedFile.extract ... issue 6510
>  4) ZippedFile.extract ... issue 6609
>  5) TarredFile.extract ... issue 6584

Looks like some of these are already fixed (I just looked quickly in
the bug tracker though)
If its not already done and pending, it would be great if you could
refactor your fixes into patches for the remaining issues for each one
of those modules


Tarek Ziadé | http://ziade.org

More information about the Python-Dev mailing list