Skip to content

Commit 8423082

Browse files
authored
feat: null directory (#143)
Needed if you are including an external project and it insists on installing things you don't want installed. Signed-off-by: Henry Schreiner <[email protected]>
1 parent 287dd4d commit 8423082

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/scikit_build_core/build/wheel.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ def build_wheel(
135135
"data": wheel_dir / "data",
136136
"headers": wheel_dir / "headers",
137137
"scripts": wheel_dir / "scripts",
138+
"null": wheel_dir / "null",
138139
}
139140

140141
for wheel_dir in wheel_dirs.values():
@@ -212,7 +213,10 @@ def build_wheel(
212213
settings.wheel.py_api,
213214
expand_macos=settings.wheel.expand_macos_universal_tags,
214215
)
215-
wheel.build({k: str(v) for k, v in wheel_dirs.items()}, tags=tags.tags_dict())
216+
wheel.build(
217+
{k: str(v) for k, v in wheel_dirs.items() if k != "null"},
218+
tags=tags.tags_dict(),
219+
)
216220

217221
wheel_filename: str = wheel.filename
218222
return wheel_filename

0 commit comments

Comments
 (0)