summaryrefslogtreecommitdiffstats
path: root/Tools/msi/distutils.command.bdist_wininst.py
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2016-12-11 22:48:32 (GMT)
committerSteve Dower <steve.dower@microsoft.com>2016-12-11 22:48:32 (GMT)
commitb227227cb574a7bad6ed6d5cfc3ef23b10b1919f (patch)
tree0612d836da68c45bf74bbd239cbfb2223c36f7b1 /Tools/msi/distutils.command.bdist_wininst.py
parent4cc30ae31341ba233a861899be7d225519c71830 (diff)
parente711cc0f222ce22bad0ee84b3d27eccc2ad8b63d (diff)
downloadcpython-b227227cb574a7bad6ed6d5cfc3ef23b10b1919f.zip
cpython-b227227cb574a7bad6ed6d5cfc3ef23b10b1919f.tar.gz
cpython-b227227cb574a7bad6ed6d5cfc3ef23b10b1919f.tar.bz2
Issue #28783: Replaces bdist_wininst in nuget packages with stub
Diffstat (limited to 'Tools/msi/distutils.command.bdist_wininst.py')
-rw-r--r--Tools/msi/distutils.command.bdist_wininst.py20
1 files changed, 20 insertions, 0 deletions
diff --git a/Tools/msi/distutils.command.bdist_wininst.py b/Tools/msi/distutils.command.bdist_wininst.py
new file mode 100644
index 0000000..d586e34
--- /dev/null
+++ b/Tools/msi/distutils.command.bdist_wininst.py
@@ -0,0 +1,20 @@
+"""distutils.command.bdist_wininst
+
+Suppresses the 'bdist_wininst' command, while still allowing
+setuptools to import it without breaking."""
+
+from distutils.core import Command
+from distutils.errors import DistutilsPlatformError
+
+class bdist_wininst(Command):
+ description = "create an executable installer for MS Windows"
+
+ def initialize_options(self):
+ pass
+
+ def finalize_options(self):
+ pass
+
+ def run(self):
+ raise DistutilsPlatformError("bdist_wininst is not supported "
+ "in this Python distribution")