File tree Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Expand file tree Collapse file tree 2 files changed +6
-8
lines changed Original file line number Diff line number Diff line change @@ -82,13 +82,11 @@ def _restore_install_lib(self):
82
82
self .install_lib = self .install_libbase
83
83
84
84
85
- setup_params = dict (
86
- cmdclass = {'install' : install_with_pth },
87
- package_data = package_data ,
88
- )
89
-
90
85
if __name__ == '__main__' :
91
86
# allow setup.py to run from another directory
92
87
# TODO: Use a proper conditional statement here
93
88
here and os .chdir (here ) # type: ignore[func-returns-value]
94
- dist = setuptools .setup (** setup_params )
89
+ dist = setuptools .setup (
90
+ cmdclass = {'install' : install_with_pth },
91
+ package_data = package_data ,
92
+ )
Original file line number Diff line number Diff line change @@ -148,7 +148,7 @@ def setup(
148
148
verbose = True ,
149
149
dry_run = False ,
150
150
help = False ,
151
- cmdclass : dict [str , type [Command ]] = {},
151
+ cmdclass : dict [str , type [_Command ]] = {},
152
152
command_packages : str | list [str ] | None = None ,
153
153
script_name : StrPath
154
154
| None = ..., # default is actually set in distutils.core.setup
@@ -167,7 +167,7 @@ def setup(
167
167
scripts : list [str ] | None = None ,
168
168
data_files : list [tuple [str , list [str ]]] | None = None ,
169
169
password : str = '' ,
170
- command_obj : dict [str , Command ] = {},
170
+ command_obj : dict [str , _Command ] = {},
171
171
have_run : dict [str , bool ] = {},
172
172
# kwargs used directly in distutils.dist.Distribution.__init__
173
173
options : Mapping [str , Mapping [str , str ]] | None = None ,
You can’t perform that action at this time.
0 commit comments