Skip to content

Commit 22ffdb9

Browse files
authored
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 abetlen/llama-cpp-python#1670 (comment)).
1 parent 8fe9acb commit 22ffdb9

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/scikit_build_core/build/_file_processor.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ def each_unignored_file(
5959
# Always include something included
6060
if include_spec.match_file(p):
6161
yield p
62+
continue
6263

6364
# Ignore from global ignore
6465
if exclude_spec.match_file(p):

0 commit comments

Comments
 (0)