diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2022-08-02 21:03:33 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2022-08-02 21:13:43 -0400 |
commit | e90b97304d50eb1246197014ca2d794987ce1934 (patch) | |
tree | 23e9f77cedeeb30cd3765fd1e35862c2eb89cffb /setuptools/_distutils/command/bdist.py | |
parent | 9b0cf7e1dfd8c3e11a47a9b3c7f4385745d50daf (diff) | |
parent | c397f4c164e0a6f49a1ac3a70f5c80fe05785ed6 (diff) | |
download | python-setuptools-git-e90b97304d50eb1246197014ca2d794987ce1934.tar.gz |
Merge https://github.com/pypa/distutils into bugfix/distutils-164
Diffstat (limited to 'setuptools/_distutils/command/bdist.py')
-rw-r--r-- | setuptools/_distutils/command/bdist.py | 31 |
1 files changed, 10 insertions, 21 deletions
diff --git a/setuptools/_distutils/command/bdist.py b/setuptools/_distutils/command/bdist.py index 53f13214..4af1b8e6 100644 --- a/setuptools/_distutils/command/bdist.py +++ b/setuptools/_distutils/command/bdist.py @@ -20,12 +20,6 @@ def show_formats(): pretty_printer.print_help("List of available distribution formats:") -class ListCompat(dict): - # adapter to allow for Setuptools compatibility in format_commands - def append(self, item): - return - - class bdist(Command): description = "create a built (binary) distribution" @@ -71,23 +65,18 @@ class bdist(Command): default_format = {'posix': 'gztar', 'nt': 'zip'} # Define commands in preferred order for the --help-formats option - format_commands = ListCompat( - { - 'rpm': ('bdist_rpm', "RPM distribution"), - 'gztar': ('bdist_dumb', "gzip'ed tar file"), - 'bztar': ('bdist_dumb', "bzip2'ed tar file"), - 'xztar': ('bdist_dumb', "xz'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"), - 'msi': ('bdist_msi', "Microsoft Installer"), - } + format_commands = dict( + rpm=('bdist_rpm', "RPM distribution"), + gztar=('bdist_dumb', "gzip'ed tar file"), + bztar=('bdist_dumb', "bzip2'ed tar file"), + xztar=('bdist_dumb', "xz'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"), + msi=('bdist_msi', "Microsoft Installer"), ) - # for compatibility until Setuptools references only format_commands - format_command = format_commands - def initialize_options(self): self.bdist_base = None self.plat_name = None |