diff options
| author | Miro HronĨok <miro@hroncok.cz> | 2019-07-01 14:12:40 +0200 |
|---|---|---|
| committer | Victor Stinner <vstinner@redhat.com> | 2019-07-01 14:12:40 +0200 |
| commit | eb834d03cc5a681a43ad8b76d0761e718199e5bc (patch) | |
| tree | a14f276fe874e949e562f13a8b8dc7c0b4640375 | |
| parent | 69b935025661716ac64b3e2b049ed9b703dfe96a (diff) | |
| download | python-setuptools-git-eb834d03cc5a681a43ad8b76d0761e718199e5bc.tar.gz | |
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.
| -rw-r--r-- | command/bdist_wininst.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/command/bdist_wininst.py b/command/bdist_wininst.py index 3a616883..acaa184b 100644 --- a/command/bdist_wininst.py +++ b/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 |
