Skip to content

Commit 2878c8b

Browse files
committed
fix: avoid passing a function
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 2cffb18 commit 2878c8b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scikit_build_core/builder/cross_compile.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ def set_cross_compile_env(
4747
yield
4848
return
4949

50-
sysconf_name = getattr(sysconfig, "_get_sysconfigdata_name", "")
50+
sysconf_name = getattr(sysconfig, "_get_sysconfigdata_name", lambda: None)()
5151
if not sysconf_name:
5252
logger.warning(
5353
"Cross-compiling is not supported due to sysconfig._get_sysconfigdata_name missing."

0 commit comments

Comments
 (0)