[Python-Dev] Enhancing the shutil module (original) (raw)
Tarek Ziadé ziade.tarek at gmail.com
Sun Jan 17 23:09:29 CET 2010
- Previous message: [Python-Dev] Enhancing the shutil module
- Next message: [Python-Dev] Enhancing the shutil module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
andzipfile
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) ensurereadwriteaccess 2) *File.isvalid 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
Regards Tarek
-- Tarek Ziadé | http://ziade.org
- Previous message: [Python-Dev] Enhancing the shutil module
- Next message: [Python-Dev] Enhancing the shutil module
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]