Lines Matching refs:zip
3 Utility functions for creating archive files (tarballs, zip files,
128 """Create a zip file from all the files under 'base_dir'.
130 The output zip file will be named 'base_name' + ".zip". Uses either the
131 "zipfile" Python module (if available) or the InfoZIP "zip" utility
133 available, raises DistutilsExecError. Returns the name of the output zip
136 zip_filename = base_name + ".zip"
140 # 'zip' command.
148 spawn(["zip", zipoptions, zip_filename, base_dir],
152 # external 'zip' command" and "zip failed".
153 raise DistutilsExecError(("unable to create zip file '%s': "
155 "find a standalone zip utility") % zip_filename)
163 zip = zipfile.ZipFile(zip_filename, "w",
166 zip = zipfile.ZipFile(zip_filename, "w",
169 with zip:
172 zip.write(path, path)
177 zip.write(path, path)
182 zip.write(path, path)
193 'zip': (make_zipfile, [],"ZIP file")
208 """Create an archive file (eg. zip or tar).
211 extension; 'format' is the archive format: one of "zip", "tar", "gztar",
245 if format != 'zip':