Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions src/scikit_build_core/build/wheel.py
Original file line number Diff line number Diff line change
Expand Up @@ -196,6 +196,15 @@ def build_wheel(
exclude=settings.sdist.exclude,
)

for item in wheel_dirs["scripts"].iterdir():
with item.open("rb") as f:
content = f.read(len(b"#!python"))
if content.startswith(b"#!/") and not b"#!python" != content:
logger.warning(
"Files in scripts/ are not post-processed yet for shabang fixes"
)
break

_write_wheel_metadata(packages_dir=wheel_dirs["platlib"], metadata=metadata)

tags = WheelTag.compute_best(
Expand Down
2 changes: 1 addition & 1 deletion src/scikit_build_core/builder/sysconfig.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ def get_python_library() -> Path | None:
if libpath.is_file():
return libpath

logger.error(
logger.warning(
"Can't find a Python library, got libdir={}, ldlibrary={}, multiarch={}, masd={}",
libdir,
ldlibrary,
Expand Down