Skip to content

The agent that grows with you

fix(termux): repair the import gate's mangled module-split script

ethernet15a427fbe992
diff --git a/scripts/termux/build_wheels.py b/scripts/termux/build_wheels.py
index 80653cc6272..3fa5f6b637f 100644
--- a/scripts/termux/build_wheels.py
+++ b/scripts/termux/build_wheels.py
@@ -359,10 +359,10 @@ def wheelhouse_gates(resolved: Path, wheelhouse: Path, build_set: list[str]) ->
script = ",".join(mods)
subprocess.run(
[str(vp), '-c',
- 'import importlib, sys\n'
- 'for name in sys.argv[1].split(''):\n'
- ' importlib.import_module(name)\n'
- ' print('' imported'', name)\n',
+ "import importlib, sys\n"
+ "for name in sys.argv[1].split(','):\n"
+ " importlib.import_module(name)\n"
+ " print(' imported', name)\n",
script],
check=True,
)