diff options
| author | Éric Araujo <merwok@netwok.org> | 2011-08-29 23:19:02 (GMT) |
|---|---|---|
| committer | Éric Araujo <merwok@netwok.org> | 2011-08-29 23:19:02 (GMT) |
| commit | 83ab3f319b3b83c84c4df72349b6ce7d5ec936da (patch) | |
| tree | e20adfadf4a6d50d954aa5cd13a3e89616a4fc4a /Lib/packaging/command/bdist_dumb.py | |
| parent | ff29ff88314badd8ba868de8cce5684d0f4611a4 (diff) | |
| download | cpython-83ab3f319b3b83c84c4df72349b6ce7d5ec936da.zip cpython-83ab3f319b3b83c84c4df72349b6ce7d5ec936da.tar.gz cpython-83ab3f319b3b83c84c4df72349b6ce7d5ec936da.tar.bz2 | |
Remove obsolete mentions of the compress program and .Z archives.
Packaging uses the shutil.make_archive function copied from distutils,
which does not support compress. There is no test to check that
“bdist --format whatever” works, so this slipped by.
Diffstat (limited to 'Lib/packaging/command/bdist_dumb.py')
| -rw-r--r-- | Lib/packaging/command/bdist_dumb.py | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/Lib/packaging/command/bdist_dumb.py b/Lib/packaging/command/bdist_dumb.py index f74b720..ed83c8e 100644 --- a/Lib/packaging/command/bdist_dumb.py +++ b/Lib/packaging/command/bdist_dumb.py @@ -13,6 +13,7 @@ from packaging.command.cmd import Command from packaging.errors import PackagingPlatformError from packaging import logger + class bdist_dumb(Command): description = 'create a "dumb" built distribution' @@ -23,7 +24,7 @@ class bdist_dumb(Command): "platform name to embed in generated filenames " "(default: %s)" % get_platform()), ('format=', 'f', - "archive format to create (tar, ztar, gztar, zip)"), + "archive format to create (tar, gztar, zip)"), ('keep-temp', 'k', "keep the pseudo-installation tree around after " + "creating the distribution archive"), @@ -44,10 +45,9 @@ class bdist_dumb(Command): boolean_options = ['keep-temp', 'skip-build', 'relative'] - default_format = { 'posix': 'gztar', - 'nt': 'zip', - 'os2': 'zip' } - + default_format = {'posix': 'gztar', + 'nt': 'zip', + 'os2': 'zip'} def initialize_options(self): self.bdist_dir = None @@ -69,8 +69,9 @@ class bdist_dumb(Command): try: self.format = self.default_format[os.name] except KeyError: - raise PackagingPlatformError(("don't know how to create dumb built distributions " + - "on platform %s") % os.name) + raise PackagingPlatformError( + "don't know how to create dumb built distributions " + "on platform %s" % os.name) self.set_undefined_options('bdist', 'dist_dir', 'plat_name') |
