@@ -412,7 +412,7 @@ def _get_extension_packages(ignore_info_file=False, restrict_to_directories=None
412
412
413
413
# Temporary variables to support the loop below and make sure we loop through all
414
414
# the paths in the submodule_search_locations including calling the path hooks.
415
- # We coudl skip calling things on the path hooks since the module was just imported
415
+ # We could skip calling things on the path hooks since the module was just imported
416
416
# by importlib so the values are probably already in submodule_search_locations but
417
417
# there may be cases where we need to call multiple times. This also allows us to tie
418
418
# the finders (ie: the path hooks) back to the distribution since they share a name.
@@ -544,7 +544,7 @@ def process_file(state: Dict[str, Any], root_dir: str, file: str):
544
544
"Package '%s' defines more than one meta configuration: "
545
545
"'%s' and '%s' (at least)"
546
546
% (
547
- dist_name ,
547
+ state [ "name" ] ,
548
548
state ["meta_module" ],
549
549
potential_meta_module ,
550
550
)
@@ -968,8 +968,9 @@ def _filter_files_package(pkg):
968
968
# - if include_suffixes, only include those suffixes
969
969
# - if *not* include_suffixes but exclude_suffixes, include everything *except*
970
970
# files ending with that suffix
971
+ new_files , new_full_path_files = [], []
972
+
971
973
if filter_function :
972
- new_files , new_full_path_files = [], []
973
974
for short_file , full_file in zip (pkg ["files" ], pkg ["full_path_files" ]):
974
975
try :
975
976
if filter_function (os .path .join (EXT_PKG , short_file )):
0 commit comments