Skip to content

Commit 209ad7e

Browse files
committed
Fix 3.13 syconfig
1 parent dc8a37f commit 209ad7e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

relenv/runtime.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1270,3 +1270,8 @@ def bootstrap() -> None:
12701270
setup_crossroot()
12711271
install_cargo_config()
12721272
sys.meta_path = [importer] + sys.meta_path
1273+
1274+
# For Python 3.13+, sysconfig became a package so the importer doesn't
1275+
# intercept it. Manually wrap it here.
1276+
if sys.version_info >= (3, 13):
1277+
wrap_sysconfig("sysconfig")

0 commit comments

Comments
 (0)