File tree 2 files changed +5
-4
lines changed
2 files changed +5
-4
lines changed Original file line number Diff line number Diff line change
1
+ In install command, use super to call the superclass methods. Avoids race conditions when monkeypatching from _distutils_system_mod occurs late.
Original file line number Diff line number Diff line change @@ -49,12 +49,12 @@ def initialize_options(self):
49
49
# and then add a due_date to this warning.
50
50
)
51
51
52
- orig . install . initialize_options (self )
52
+ super (). initialize_options ()
53
53
self .old_and_unmanageable = None
54
54
self .single_version_externally_managed = None
55
55
56
56
def finalize_options (self ):
57
- orig . install . finalize_options (self )
57
+ super (). finalize_options ()
58
58
if self .root :
59
59
self .single_version_externally_managed = True
60
60
elif self .single_version_externally_managed :
@@ -78,11 +78,11 @@ def handle_extra_path(self):
78
78
def run (self ):
79
79
# Explicit request for old-style install? Just do it
80
80
if self .old_and_unmanageable or self .single_version_externally_managed :
81
- return orig . install . run (self )
81
+ return super (). run ()
82
82
83
83
if not self ._called_from_setup (inspect .currentframe ()):
84
84
# Run in backward-compatibility mode to support bdist_* commands.
85
- orig . install . run (self )
85
+ super (). run ()
86
86
else :
87
87
self .do_egg_install ()
88
88
You can’t perform that action at this time.
0 commit comments