From c97ceed55d61cbae9290d4341764ea44bffb3caa Mon Sep 17 00:00:00 2001 From: Campbell Barton <ideasman42@gmail.com> Date: Fri, 16 Aug 2024 18:01:50 +1000 Subject: [PATCH] Fix failure to remove libraries when removing wheels Disabling wheels wasn't removing the modules "*.libs" directories. Pull Request: https://projects.blender.org/blender/blender/pulls/126404 --- scripts/modules/_bpy_internal/extensions/wheel_manager.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/scripts/modules/_bpy_internal/extensions/wheel_manager.py b/scripts/modules/_bpy_internal/extensions/wheel_manager.py index 83f96b56090..334872debcb 100644 --- a/scripts/modules/_bpy_internal/extensions/wheel_manager.py +++ b/scripts/modules/_bpy_internal/extensions/wheel_manager.py @@ -93,6 +93,10 @@ def _wheels_from_dir(dirpath: str) -> Tuple[ toplevel_paths_set.add(path_split[0]) + # Some wheels contain `{name}.libs` which are *not* listed in `RECORD`. + # Always add the path, the value will be skipped if it's missing. + toplevel_paths_set.add(os.path.join(dirpath, name.partition("-")[0] + ".libs")) + result[name] = list(sorted(toplevel_paths_set)) del toplevel_paths_set -- GitLab