mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
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).
This commit is contained in:
parent
b02ea65f92
commit
0538f1f2c7
5 changed files with 976 additions and 4 deletions
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue