From 102f93faf2138b7ce4e10599b839d5783cd906cd Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Fri, 8 Nov 2024 16:05:54 +1100 Subject: [PATCH] Fix #129724: building extensions fails with non empty paths --- scripts/addons_core/bl_pkg/cli/blender_ext.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/addons_core/bl_pkg/cli/blender_ext.py b/scripts/addons_core/bl_pkg/cli/blender_ext.py index 617c3c7f638..1e37fcf5394 100755 --- a/scripts/addons_core/bl_pkg/cli/blender_ext.py +++ b/scripts/addons_core/bl_pkg/cli/blender_ext.py @@ -4502,11 +4502,14 @@ class subcmd_author: *(manifest.wheels or ()), ) build_paths_wheel_range = 1, 1 + len(manifest.wheels or ()) + # Exclude when checking file listing because the extra paths are mixed with user defined paths, + # and including the manifest raises an error. + build_paths_extra_skip_index = 1 if manifest_build_data is not None: manifest_build_test = PkgManifest_Build.from_dict_all_errors( manifest_build_data, - extra_paths=build_paths_extra, + extra_paths=build_paths_extra[build_paths_extra_skip_index:], ) if isinstance(manifest_build_test, list): for error_msg in manifest_build_test: