You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix IndexError when only generic artifacts exist (#3767)
`Parameters.__init__` raised `IndexError` when only generic artifacts
were present (e.g. a core-only or headers-only build).
Make `default_target_family` `Optional[str]`, set to `None` when the
family set is empty, and guard the `DEFAULT_TARGET_FAMILY` line in the
generated `dist_info` contents accordingly. The template's fallback
value `DEFAULT_TARGET_FAMILY = "DEFAULT"` is a sentinel for the
no-families case; since `AVAILABLE_TARGET_FAMILIES` is also empty in
that case, any call to `determine_target_family()` will raise a
`ValueError` regardless.
Co-authored-by: Claude <[email protected]>
0 commit comments