summaryrefslogtreecommitdiff
path: root/Lib/distutils/command/bdist.py
diff options
context:
space:
mode:
authorMarc-André Lemburg <mal@egenix.com>2002-04-17 20:30:10 +0000
committerMarc-André Lemburg <mal@egenix.com>2002-04-17 20:30:10 +0000
commit0538f1f2c7171ceb0940fd3865172ad164d2005e (patch)
tree31d7a834f2f7a0f001956b4a0655727d6c09e643 /Lib/distutils/command/bdist.py
parentb02ea65f92f7e0c04689f469d436ba35dc2f631f (diff)
downloadcpython-git-0538f1f2c7171ceb0940fd3865172ad164d2005e.tar.gz
Patch #531901 by Mark W. Alexander: adds a new distutils packager
base class (in bdist_packager) and two subclasses which make use of this base class: bdist_pkgtool (for Solaris) and bdist_sdux (for HP-UX).
Diffstat (limited to 'Lib/distutils/command/bdist.py')
-rw-r--r--Lib/distutils/command/bdist.py11
1 files changed, 7 insertions, 4 deletions
diff --git a/Lib/distutils/command/bdist.py b/Lib/distutils/command/bdist.py
index 99f7d95e5a..f61611eb8d 100644
--- a/Lib/distutils/command/bdist.py
+++ b/Lib/distutils/command/bdist.py
@@ -52,7 +52,7 @@ class bdist (Command):
]
# The following commands do not take a format option from bdist
- no_format_option = ('bdist_rpm',)
+ no_format_option = ('bdist_rpm', 'bdist_sdux', 'bdist_pkgtool')
# This won't do in reality: will need to distinguish RPM-ish Linux,
# Debian-ish Linux, Solaris, FreeBSD, ..., Windows, Mac OS.
@@ -62,18 +62,21 @@ class bdist (Command):
# Establish the preferred order (for the --help-formats option).
format_commands = ['rpm', 'gztar', 'bztar', 'ztar', 'tar',
- 'wininst', 'zip']
+ 'wininst', 'zip', 'pkgtool', 'sdux']
# And the real information.
format_command = { 'rpm': ('bdist_rpm', "RPM distribution"),
- 'gztar': ('bdist_dumb', "gzip'ed tar file"),
+ 'zip': ('bdist_dumb', "ZIP file"), '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"),
'wininst': ('bdist_wininst',
"Windows executable installer"),
'zip': ('bdist_dumb', "ZIP file"),
- }
+ 'pkgtool': ('bdist_pkgtool',
+ "Solaris pkgtool distribution"),
+ 'sdux': ('bdist_sdux', "HP-UX swinstall depot"),
+ }
def initialize_options (self):