File tree Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Expand file tree Collapse file tree 1 file changed +7
-6
lines changed Original file line number Diff line number Diff line change 1919
2020
2121@rez_pip .plugins .hookimpl
22- def cleanup (dist : "importlib_metadata.Distribution" , path : str ) -> None :
22+ def cleanup (
23+ dist : "importlib_metadata.Distribution" , path : str
24+ ) -> typing .List [rez_pip .plugins .CleanupAction ]:
2325 if packaging .utils .canonicalize_name (dist .name ) != "shiboken6" :
24- return
26+ return []
2527
2628 # Remove PySide6 from shiboken6 packages...
2729 # shiboken6 >=6.3, <6.6.2 were shipping some PySide6 folders by mistake.
2830 # Not removing these extra folders would stop python from being able to import
2931 # the correct PySide6 (that lives in a separate rez package).
30- path = os .path .join (path , "python" , "PySide6" )
31- if os .path .exists (path ):
32- _LOG .debug (f"Removing { path !r} " )
33- shutil .rmtree (path )
32+ return [
33+ rez_pip .plugins .CleanupAction ("remove" , os .path .join (path , "python" , "PySide6" ))
34+ ]
You can’t perform that action at this time.
0 commit comments