summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/archive_util.py
Commit message (Collapse)AuthorAgeFilesLines
* Pete Shinners discovered that zipfile.ZipFile() is called with modeGuido van Rossum2001-04-141-1/+1
| | | | | argument "wb", while the only valid modes are "r", "w" or "a". Fix this by changing the mode to "w".
* Reformat docstrings.Greg Ward2000-09-261-28/+28
| | | | Standardize whitespace in function calls.
* Ensure destination directory exists before trying to create a tarballGreg Ward2000-08-221-2/+4
| | | | or ZIP file.
* Stylistic/formatting changes to Rene Liebscher's '--help-xxx' patch.Greg Ward2000-06-241-4/+4
|
* Patch from Rene Liebscher: this adds "--help-foo" options to list theGreg Ward2000-06-071-5/+5
| | | | | | | | | | values that "--foo" can take for various commands: eg. what formats for "sdist" and "bdist", what compilers for "build_ext" and "build_clib". I have *not* reviewed this patch; I'm checking it in as-is because it also fixes a paper-bag-over-head bug in bdist.py, and because I won't have time to review it properly for several days: so someone else can test it for me, instead!
* Ensure that 'make_archive()' returns the name of the new archive file.Greg Ward2000-06-011-4/+5
|
* Normalize paths before writing them to a zipfile.Greg Ward2000-05-311-1/+1
|
* Harry Henry Gebel:Greg Ward2000-04-251-8/+16
| | | | | | | | | | | | | | | Adds bztar format to generate .tar.bz2 tarballs Uses the -f argument to overright old tarballs automatically, I am assuming that if the old tarball was wanted it would have been moved or else the version number would have been changed. Uses the -9 argument to bzip2 and gzip to use maximum compression. Compress uses the maximum compression by default. Tests for correct value for the 'compress' argument of make_tarball. This is one less place for someone adding new compression programs to forget to change.
* Extracted the "what-do-I-do-for-this-format" logic from code inGreg Ward2000-04-221-11/+21
| | | | | | 'make_archive()' to a global static dictionary, ARCHIVE_FORMATS. Added 'check_archive_formats()', which obviously makes good use of this dictionary.
* Reorganization: ripped util.py to shreds, creating in the process:Greg Ward2000-04-041-0/+152
- file_util.py: operations on single files - dir_util.py: operations on whole directories or directory trees - dep_util.py: simple timestamp-based dependency analysis - archive_util.py: creation of archive (tar, zip, ...) files The functions left in util.py are miscellany that don't fit in any of the new files.