Skip to content

Commit

Permalink
fix: avoid passing a function
Browse files Browse the repository at this point in the history
Signed-off-by: Henry Schreiner <[email protected]>
  • Loading branch information
henryiii committed Jun 10, 2023
1 parent 14f859f commit aa62273
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scikit_build_core/builder/cross_compile.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ def set_cross_compile_env(
yield
return

sysconf_name = getattr(sysconfig, "_get_sysconfigdata_name", "")
sysconf_name = getattr(sysconfig, "_get_sysconfigdata_name", lambda: None)()
if not sysconf_name:
logger.warning(
"Cross-compiling is not supported due to sysconfig._get_sysconfigdata_name missing."
Expand Down

0 comments on commit aa62273

Please sign in to comment.