Skip to content

Commit

Permalink
Remove bdist_wininst
Browse files Browse the repository at this point in the history
Fixes pypa#2558
  • Loading branch information
hroncok committed Feb 12, 2021
1 parent c121d28 commit 84ef0ae
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 57 deletions.
2 changes: 0 additions & 2 deletions pytest.ini
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@ filterwarnings=
ignore:direct construction of .*Item has been deprecated:DeprecationWarning
# Fail on warnings
error
# https://github.com/pypa/setuptools/issues/1823
ignore:bdist_wininst command is deprecated
# Suppress this error; unimportant for CI tests
ignore:Extraction path is writable by group/others:UserWarning
# Suppress weird RuntimeWarning.
Expand Down
2 changes: 1 addition & 1 deletion setuptools/command/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
'alias', 'bdist_egg', 'bdist_rpm', 'build_ext', 'build_py', 'develop',
'easy_install', 'egg_info', 'install', 'install_lib', 'rotate', 'saveopts',
'sdist', 'setopt', 'test', 'install_egg_info', 'install_scripts',
'bdist_wininst', 'upload_docs', 'build_clib', 'dist_info',
'upload_docs', 'build_clib', 'dist_info',
]

from distutils.command.bdist import bdist
Expand Down
30 changes: 0 additions & 30 deletions setuptools/command/bdist_wininst.py

This file was deleted.

3 changes: 2 additions & 1 deletion setuptools/command/install_scripts.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
from distutils import log
import distutils.command.install_scripts as orig
from distutils.errors import DistutilsModuleError
import os
import sys

Expand Down Expand Up @@ -35,7 +36,7 @@ def run(self):
try:
bw_cmd = self.get_finalized_command("bdist_wininst")
is_wininst = getattr(bw_cmd, '_is_running', False)
except ImportError:
except (ImportError, DistutilsModuleError):
is_wininst = False
writer = ei.ScriptWriter
if is_wininst:
Expand Down
23 changes: 0 additions & 23 deletions setuptools/tests/test_bdist_deprecations.py

This file was deleted.

0 comments on commit 84ef0ae

Please sign in to comment.