summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorMiro HronĨok <miro@hroncok.cz>2019-07-01 12:12:40 (GMT)
committerVictor Stinner <vstinner@redhat.com>2019-07-01 12:12:40 (GMT)
commit72cd653c4ed7a4f8f8fb06ac364b08a97085a2b5 (patch)
tree15bb7d14ad75eae8d2dc548b488b192cf3b23160 /Lib/distutils
parent84de34e39eb9e49b2ae691c6f67df8d7da3561de (diff)
downloadcpython-72cd653c4ed7a4f8f8fb06ac364b08a97085a2b5.zip
cpython-72cd653c4ed7a4f8f8fb06ac364b08a97085a2b5.tar.gz
cpython-72cd653c4ed7a4f8f8fb06ac364b08a97085a2b5.tar.bz2
bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-14506)
bdist_wininst depends on MBCS codec, unavailable on non-Windows, and bdist_wininst have not worked since at least Python 3.2, possibly never on Python 3. Here we document that bdist_wininst is only supported on Windows, and we mark it unsupported otherwise to skip tests. Distributors of Python 3 can now safely drop the bdist_wininst .exe files without the need to skip bdist_wininst related tests.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/command/bdist_wininst.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py
index 3a61688..acaa184 100644
--- a/Lib/distutils/command/bdist_wininst.py
+++ b/Lib/distutils/command/bdist_wininst.py
@@ -55,6 +55,9 @@ class bdist_wininst(Command):
boolean_options = ['keep-temp', 'no-target-compile', 'no-target-optimize',
'skip-build']
+ # bpo-10945: bdist_wininst requires mbcs encoding only available on Windows
+ _unsupported = (sys.platform != "win32")
+
def initialize_options(self):
self.bdist_dir = None
self.plat_name = None