@@ -63,9 +63,7 @@ def initialize_options(self):
63
63
standards-based tools.
64
64
""" ,
65
65
see_url = "https://blog.ganssle.io/articles/2021/10/setup-py-deprecated.html" ,
66
- # TODO: Document how to bootstrap setuptools without install
67
- # (e.g. by unzipping the wheel file)
68
- # and then add a due_date to this warning.
66
+ due_date = (2025 , 10 , 31 ),
69
67
)
70
68
71
69
super ().initialize_options ()
@@ -74,9 +72,7 @@ def initialize_options(self):
74
72
75
73
def finalize_options (self ) -> None :
76
74
super ().finalize_options ()
77
- if self .root :
78
- self .single_version_externally_managed = True
79
- elif self .single_version_externally_managed :
75
+ if self .single_version_externally_managed :
80
76
if not self .root and not self .record :
81
77
raise DistutilsArgError (
82
78
"You must specify --record or --root when building system packages"
@@ -93,19 +89,6 @@ def handle_extra_path(self):
93
89
self .extra_dirs = ''
94
90
return None
95
91
96
- def run (self ):
97
- # Explicit request for old-style install? Just do it
98
- if self .old_and_unmanageable or self .single_version_externally_managed :
99
- return super ().run ()
100
-
101
- if not self ._called_from_setup (inspect .currentframe ()):
102
- # Run in backward-compatibility mode to support bdist_* commands.
103
- super ().run ()
104
- else :
105
- self .do_egg_install ()
106
-
107
- return None
108
-
109
92
@staticmethod
110
93
def _called_from_setup (run_frame ):
111
94
"""
@@ -139,9 +122,6 @@ def _called_from_setup(run_frame):
139
122
140
123
return False
141
124
142
- def do_egg_install (self ) -> None :
143
- raise NotImplementedError ("Support for egg-based install has been removed." )
144
-
145
125
146
126
# XXX Python 3.1 doesn't see _nc if this is inside the class
147
127
install .sub_commands = [
0 commit comments