summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-04-25 01:38:20 (GMT)
committerGreg Ward <gward@python.net>2000-04-25 01:38:20 (GMT)
commitf194878d6ad3b739974e805482135bad5978fa2b (patch)
tree6479b084b13ee6a58d81538840b3cbdbd672eca3 /Lib/distutils/command
parent464023fb64dd590b91cab7059dffdf0756eecbce (diff)
downloadcpython-f194878d6ad3b739974e805482135bad5978fa2b.zip
cpython-f194878d6ad3b739974e805482135bad5978fa2b.tar.gz
cpython-f194878d6ad3b739974e805482135bad5978fa2b.tar.bz2
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.
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/bdist.py4
-rw-r--r--Lib/distutils/command/sdist.py3
2 files changed, 4 insertions, 3 deletions
diff --git a/Lib/distutils/command/bdist.py b/Lib/distutils/command/bdist.py
index 685f525..cde8dd6 100644
--- a/Lib/distutils/command/bdist.py
+++ b/Lib/distutils/command/bdist.py
@@ -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', }
diff --git a/Lib/distutils/command/sdist.py b/Lib/distutils/command/sdist.py
index 8aa4618..8d9a465 100644
--- a/Lib/distutils/command/sdist.py
+++ b/Lib/distutils/command/sdist.py
@@ -33,9 +33,8 @@ class sdist (Command):
"just regenerate the manifest and then stop"),
('force-manifest', None,
"forcibly regenerate the manifest and carry on as usual"),
-
('formats=', None,
- "formats for source distribution (tar, ztar, gztar, or zip)"),
+ "formats for source distribution (tar, ztar, gztar, bztar, or zip)"),
('keep-tree', 'k',
"keep the distribution tree around after creating " +
"archive file(s)"),