Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
hhhrrrttt222111
GitHub Repository: hhhrrrttt222111/Dorkify
Path: blob/master/venv/Lib/site-packages/setuptools/command/bdist_wininst.py
811 views
1
import distutils.command.bdist_wininst as orig
2
import warnings
3
4
from setuptools import SetuptoolsDeprecationWarning
5
6
7
class bdist_wininst(orig.bdist_wininst):
8
def reinitialize_command(self, command, reinit_subcommands=0):
9
"""
10
Supplement reinitialize_command to work around
11
http://bugs.python.org/issue20819
12
"""
13
cmd = self.distribution.reinitialize_command(
14
command, reinit_subcommands)
15
if command in ('install', 'install_lib'):
16
cmd.install_lib = None
17
return cmd
18
19
def run(self):
20
warnings.warn(
21
"bdist_wininst is deprecated and will be removed in a future "
22
"version. Use bdist_wheel (wheel packages) instead.",
23
SetuptoolsDeprecationWarning
24
)
25
26
self._is_running = True
27
try:
28
orig.bdist_wininst.run(self)
29
finally:
30
self._is_running = False
31
32