summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGreg Ward <gward@python.net>2000-08-02 01:44:44 (GMT)
committerGreg Ward <gward@python.net>2000-08-02 01:44:44 (GMT)
commit6f628bb8770ac3e65ec9fc6567edb0ba1b0457b4 (patch)
tree92ba65287db8dec91c9bd0ef8eaef454ffdd7949
parent9dddbb4009ecd3efde478225170ac8fc287da8e8 (diff)
downloadcpython-6f628bb8770ac3e65ec9fc6567edb0ba1b0457b4.zip
cpython-6f628bb8770ac3e65ec9fc6567edb0ba1b0457b4.tar.gz
cpython-6f628bb8770ac3e65ec9fc6567edb0ba1b0457b4.tar.bz2
Added 'wininst' to the 'format_commands' list, so it's included in
the --help-formats output. Also moved that list up so it's more obvious when adding formats.
-rw-r--r--Lib/distutils/command/bdist.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/distutils/command/bdist.py b/Lib/distutils/command/bdist.py
index 100563a..1c862d5 100644
--- a/Lib/distutils/command/bdist.py
+++ b/Lib/distutils/command/bdist.py
@@ -52,17 +52,20 @@ class bdist (Command):
default_format = { 'posix': 'gztar',
'nt': 'zip', }
+ # Establish the preferred order (for the --help-formats option).
+ format_commands = ['rpm', 'gztar', 'bztar', 'ztar', 'tar',
+ 'wininst', 'zip']
+
+ # And the real information.
format_command = { 'rpm': ('bdist_rpm', "RPM distribution"),
'gztar': ('bdist_dumb', "gzip'ed tar file"),
'bztar': ('bdist_dumb', "bzip2'ed tar file"),
'ztar': ('bdist_dumb', "compressed tar file"),
'tar': ('bdist_dumb', "tar file"),
- 'zip': ('bdist_dumb', "ZIP file"),
'wininst': ('bdist_wininst',
"Windows executable installer"),
+ 'zip': ('bdist_dumb', "ZIP file"),
}
- # establish the preferred order
- format_commands = ['rpm', 'gztar', 'bztar', 'ztar', 'tar', 'zip']
def initialize_options (self):