diff options
| author | Anderson Bravalheri <andersonbravalheri@gmail.com> | 2022-08-01 17:32:58 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-01 17:32:58 +0100 |
| commit | 00eaec7a0c4e49af9c4062145c969f08d2953abe (patch) | |
| tree | 26ac5421a2fa1c040eaa880354fee717556611a4 /setuptools/command | |
| parent | fe6d794adea937f08146084495d0721a375d8ce7 (diff) | |
| parent | 3ecabf8583b6e57d3ac47b34d6afec0b9d00b167 (diff) | |
| download | python-setuptools-git-00eaec7a0c4e49af9c4062145c969f08d2953abe.tar.gz | |
Merge branch 'main' into docs-notfound-page
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 |
