From 22ffdb974cfcb932fa97d7f9aa974ce7f8b22e33 Mon Sep 17 00:00:00 2001 From: Andrei Date: Mon, 12 Aug 2024 21:31:54 -0400 Subject: [PATCH] fix: files included twice when they match `include_spec` (#857) Currently if a file matches the explicit `sdist.include` it is included twice in the source distribution. This causes an error with some package managers such as `uv` (See https://github.com/abetlen/llama-cpp-python/issues/1670#issuecomment-2284603172). --- src/scikit_build_core/build/_file_processor.py | 1 + 1 file changed, 1 insertion(+) diff --git a/src/scikit_build_core/build/_file_processor.py b/src/scikit_build_core/build/_file_processor.py index 457f91c4..f666aeff 100644 --- a/src/scikit_build_core/build/_file_processor.py +++ b/src/scikit_build_core/build/_file_processor.py @@ -59,6 +59,7 @@ def each_unignored_file( # Always include something included if include_spec.match_file(p): yield p + continue # Ignore from global ignore if exclude_spec.match_file(p):