diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-08-02 12:21:14 +0100 |
|---|---|---|
| committer | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-08-02 12:38:21 +0100 |
| commit | ab8e0330be999ef4b745861db0280a40eae3048b (patch) | |
| tree | 8cceab502c6ebd30410b0761e4319eef0c216def /setuptools/command | |
| parent | d0d8b6360413696c10e3a6d485dad3cb2524561d (diff) | |
| parent | 9b0cf7e1dfd8c3e11a47a9b3c7f4385745d50daf (diff) | |
| download | python-setuptools-git-ab8e0330be999ef4b745861db0280a40eae3048b.tar.gz | |
Merge branch 'main' into feature/pep660
Diffstat (limited to 'setuptools/command')
| -rw-r--r-- | setuptools/command/__init__.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/setuptools/command/__init__.py b/setuptools/command/__init__.py index b966dcea..5acd7687 100644 --- a/setuptools/command/__init__.py +++ b/setuptools/command/__init__.py @@ -2,7 +2,11 @@ from distutils.command.bdist import bdist import sys if 'egg' not in bdist.format_commands: - bdist.format_command['egg'] = ('bdist_egg', "Python .egg file") - bdist.format_commands.append('egg') + try: + bdist.format_commands['egg'] = ('bdist_egg', "Python .egg file") + except TypeError: + # For backward compatibility with older distutils (stdlib) + bdist.format_command['egg'] = ('bdist_egg', "Python .egg file") + bdist.format_commands.append('egg') del bdist, sys |
