@@ -190,14 +190,25 @@ def _run_impl(self: Self) -> None:
190190 or not _is_compatible (self .cache .get ("version" , _version ()), _version ())
191191 or any (should_clean )
192192 ):
193+ number_removed_files = 0
194+ number_removed_directories = 0
195+
193196 for file in sorted (self .config .full_build_directory .rglob ("*" ), reverse = True ):
194197 if any (file .samefile (f ) for f in [self .config .full_build_directory / "charonload" / "build.lock" ]):
195198 continue
196199
197200 if file .is_file ():
198201 file .unlink ()
202+ number_removed_files += 1
199203 elif file .is_dir () and not any (file .iterdir ()):
200204 file .rmdir ()
205+ number_removed_directories += 1
206+
207+ if self .config .verbose and (number_removed_files > 0 or number_removed_directories > 0 ):
208+ print ( # noqa: T201
209+ f"[charonload] { colorama .Fore .GREEN } { colorama .Style .BRIGHT } Removed:{ colorama .Style .NORMAL } "
210+ f"{ number_removed_files } files, { number_removed_directories } directories{ colorama .Style .RESET_ALL } "
211+ )
201212
202213
203214class _InitializeStep (_JITCompileStep ):
@@ -420,11 +431,20 @@ def _run_impl(self: Self) -> None:
420431 sys .path .append (full_extension_directory )
421432
422433 if platform .system () == "Windows" : # pragma: no cover
434+ number_added_paths = 0
435+
423436 dll_directory_list = windows_dll_directories .split (";" )
424437 for d_str in dll_directory_list :
425438 d = pathlib .Path (d_str )
426439 if d .exists () and d .is_absolute () and d .is_dir ():
427440 _windows_dll_directories_guard .add (d )
441+ number_added_paths += 1
442+
443+ if self .config .verbose and number_added_paths > 0 :
444+ print ( # noqa: T201
445+ f"[charonload] { colorama .Fore .GREEN } { colorama .Style .BRIGHT } Added:{ colorama .Style .NORMAL } "
446+ f"{ number_added_paths } DLL paths (Windows only){ colorama .Style .RESET_ALL } "
447+ )
428448
429449
430450module_config : dict [str , Config ] = {}
0 commit comments