Skip to content

Commit

Permalink
Update __init__.py
Browse files Browse the repository at this point in the history
  • Loading branch information
henryiii authored Sep 20, 2024
1 parent d85e655 commit f86b09d
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/scikit_build_core/build/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,9 +78,7 @@ def _has_safe_metadata() -> bool:
overrides = pyproject.get("tool", {}).get("scikit-build", {}).get("overrides", [])
for override in overrides:
if_override = override.get("if", {})
if if_override.get("failed", False) or if_override.get("any", {}).get(
"failed", False
):
if "failed" in if_override or "failed" in if_override.get("any", {}):
return False

return True
Expand Down

0 comments on commit f86b09d

Please sign in to comment.