From 9bfc5fa5fd0da9254c2e95edb42da3fb65893f75 Mon Sep 17 00:00:00 2001 From: Hugo Date: Sun, 16 Feb 2020 16:07:02 +0200 Subject: Deprecate bdist_wininst --- setuptools/command/bdist_wininst.py | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'setuptools/command') diff --git a/setuptools/command/bdist_wininst.py b/setuptools/command/bdist_wininst.py index 073de97b..ff4b6345 100644 --- a/setuptools/command/bdist_wininst.py +++ b/setuptools/command/bdist_wininst.py @@ -1,4 +1,7 @@ import distutils.command.bdist_wininst as orig +import warnings + +from setuptools import SetuptoolsDeprecationWarning class bdist_wininst(orig.bdist_wininst): @@ -14,6 +17,12 @@ class bdist_wininst(orig.bdist_wininst): return cmd def run(self): + warnings.warn( + "bdist_wininst is deprecated and will be removed in a future " + "version. Use bdist_wheel (wheel packages) instead.", + SetuptoolsDeprecationWarning + ) + self._is_running = True try: orig.bdist_wininst.run(self) -- cgit v1.2.1