Skip to content

Commit 5f2c2a7

Browse files
committed
fix: path correction
Signed-off-by: Henry Schreiner <[email protected]>
1 parent 60dc1fc commit 5f2c2a7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/scikit_build_core/builder/cross_compile.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def set_cross_compile_env(
5757
with tempfile.TemporaryDirectory() as tmpdir:
5858
tmp_dir = Path(tmpdir).resolve()
5959
cross_compile_file = tmp_dir / f"_cross_compile_{ext_suffix}.py"
60-
input_txt = resources.read_text("_cross_compile.py")
60+
input_txt = resources.join_path("_cross_compile.py").read_text(encoding="utf-8")
6161
output_text = string.Template(input_txt).substitute(
6262
host_name=sysconf_name,
6363
SOABI=ext_suffix.rsplit(maxsplit=1)[0],

0 commit comments

Comments
 (0)