diff options
author | Victor Stinner <vstinner@redhat.com> | 2019-07-05 08:44:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-07-05 08:44:12 (GMT) |
commit | 1da4462765b084dfa8d869b6cb5855e8f6014a11 (patch) | |
tree | 42e1203ee43a5d5da5da56ba489e76b3dddecb47 /Lib/distutils/command/bdist_wininst.py | |
parent | a55f75a6e3e9cda5c7c30bd961386b1a8a2e9892 (diff) | |
download | cpython-1da4462765b084dfa8d869b6cb5855e8f6014a11.zip cpython-1da4462765b084dfa8d869b6cb5855e8f6014a11.tar.gz cpython-1da4462765b084dfa8d869b6cb5855e8f6014a11.tar.bz2 |
bpo-37481: Deprecate distutils bdist_wininst command (GH-14553)
The distutils bdist_wininst command is now deprecated, use
bdist_wheel (wheel packages) instead.
Diffstat (limited to 'Lib/distutils/command/bdist_wininst.py')
-rw-r--r-- | Lib/distutils/command/bdist_wininst.py | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/Lib/distutils/command/bdist_wininst.py b/Lib/distutils/command/bdist_wininst.py index acaa184..b5ed6f0 100644 --- a/Lib/distutils/command/bdist_wininst.py +++ b/Lib/distutils/command/bdist_wininst.py @@ -3,7 +3,9 @@ Implements the Distutils 'bdist_wininst' command: create a windows installer exe-program.""" -import sys, os +import os +import sys +import warnings from distutils.core import Command from distutils.util import get_platform from distutils.dir_util import create_tree, remove_tree @@ -58,6 +60,12 @@ class bdist_wininst(Command): # bpo-10945: bdist_wininst requires mbcs encoding only available on Windows _unsupported = (sys.platform != "win32") + def __init__(self, *args, **kw): + super().__init__(*args, **kw) + warnings.warn("bdist_wininst command is deprecated since Python 3.8, " + "use bdist_wheel (wheel packages) instead", + DeprecationWarning, 2) + def initialize_options(self): self.bdist_dir = None self.plat_name = None |