+v63.4.1
+-------
+
+
+Misc
+^^^^
+* #3482: Sync with pypa/distutils@274758f1c02048d295efdbc13d2f88d9923547f8, restoring compatibility shim in bdist.format_commands.
+
+
v63.4.0
-------
Changes
^^^^^^^
* #2971: ``upload_docs`` command is deprecated once again.
-* #3475: Merge with pypa/distutils@129480b, including substantial delinting and cleanup, some refactoring around compiler logic, better messaging in cygwincompiler (pypa/distutils#161).
Documentation changes
^^^^^^^^^^^^^^^^^^^^^
Changes
^^^^^^^
-* #3460: <<<<<<< HEAD
- Limit the scope of the _distutils_hack workaround for pip.
- =======
- Remove the pip workaround in _distutils_hack.
- >>>>>>> 46344cf0 (Remove pip workaround in _distutils_hack.)
* #3475: Merge with pypa/distutils@129480b, including substantial delinting and cleanup, some refactoring around compiler logic, better messaging in cygwincompiler (pypa/distutils#161).
distribution)."""
import os
+import warnings
+
from distutils.core import Command
from distutils.errors import DistutilsPlatformError, DistutilsOptionError
from distutils.util import get_platform
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):
+ warnings.warn(
+ """format_commands is now a dict. append is deprecated.""",
+ DeprecationWarning,
+ stacklevel=2,
+ )
+
+
class bdist(Command):
description = "create a built (binary) distribution"
default_format = {'posix': 'gztar', 'nt': 'zip'}
# Define commands in preferred order for the --help-formats option
- 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"),
+ 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"),
+ }
)
+ # for compatibility until consumers only reference format_commands
+ format_command = format_commands
+
def initialize_options(self):
self.bdist_base = None
self.plat_name = None