bpo-10945: Drop support for bdist_wininst on non-Windows systems (GH-… · python/cpython@45c10da (original) (raw)

3 files changed

lines changed

Original file line number Diff line number Diff line change
@@ -313,8 +313,8 @@ or the :command:`bdist` command with the :option:`!--formats` option::
313 313
314 314 If you have a pure module distribution (only containing pure Python modules and
315 315 packages), the resulting installer will be version independent and have a name
316 -like :file:`foo-1.0.win32.exe`. These installers can even be created on Unix
317 -platforms or Mac OS X.
316 +like :file:`foo-1.0.win32.exe`. Note that creating ``wininst`` binary
317 +distributions in only supported on Windows systems.
318 318
319 319 If you have a non-pure distribution, the extensions can only be created on a
320 320 Windows platform, and will be Python version dependent. The installer filename
Original file line number Diff line number Diff line change
@@ -55,6 +55,9 @@ class bdist_wininst(Command):
55 55 boolean_options = ['keep-temp', 'no-target-compile', 'no-target-optimize',
56 56 'skip-build']
57 57
58 +# bpo-10945: bdist_wininst requires mbcs encoding only available on Windows
59 +_unsupported = (sys.platform != "win32")
60 +
58 61 def initialize_options(self):
59 62 self.bdist_dir = None
60 63 self.plat_name = None
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
1 +Officially drop support for creating bdist_wininst installers on non-Windows
2 +systems.