• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1"""distutils.command.bdist_wininst
2
3Suppress the 'bdist_wininst' command, while still allowing
4setuptools to import it without breaking."""
5
6from distutils.core import Command
7from distutils.errors import DistutilsPlatformError
8
9
10class bdist_wininst(Command):
11    description = "create an executable installer for MS Windows"
12
13    # Marker for tests that we have the unsupported bdist_wininst
14    _unsupported = True
15
16    def initialize_options(self):
17        pass
18
19    def finalize_options(self):
20        pass
21
22    def run(self):
23        raise DistutilsPlatformError(
24            "bdist_wininst is not supported in this Python distribution"
25        )
26