mirror of
https://github.com/python/cpython.git
synced 2025-11-02 03:01:58 +00:00
Harry Henry Gebel:
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.
This commit is contained in:
parent
464023fb64
commit
f194878d6a
3 changed files with 20 additions and 11 deletions
|
|
@ -18,7 +18,8 @@ class bdist (Command):
|
|||
description = "create a built (binary) distribution"
|
||||
|
||||
user_options = [('format=', 'f',
|
||||
"format for distribution (tar, ztar, gztar, zip, ... )"),
|
||||
"format for distribution " +
|
||||
"(tar, ztar, gztar, bztar, zip, ... )"),
|
||||
]
|
||||
|
||||
# This won't do in reality: will need to distinguish RPM-ish Linux,
|
||||
|
|
@ -27,6 +28,7 @@ class bdist (Command):
|
|||
'nt': 'zip', }
|
||||
|
||||
format_command = { 'gztar': 'bdist_dumb',
|
||||
'bztar': 'bdist_dumb',
|
||||
'ztar': 'bdist_dumb',
|
||||
'tar': 'bdist_dumb',
|
||||
'zip': 'bdist_dumb', }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue