fix: cap pip detection subprocess with a 10s timeout #12

Merged
JMR-dev merged 2 commits from claude/bootstrap-infinite-loop-arm64-VU64t into main 2026-05-22 19:14:53 +00:00
JMR-dev commented 2026-05-22 19:14:34 +00:00 (Migrated from github.com)

A hung python3 -m pip --version inside _pip_installed() could block
the bootstrap indefinitely, since subprocess.run was called without a
timeout. Treat a timeout (or a missing python3) as "pip not installed"
so the bootstrap proceeds to install it rather than hanging.

https://claude.ai/code/session_01447pnRM4ogyxs5tVCUNDZW

A hung `python3 -m pip --version` inside `_pip_installed()` could block the bootstrap indefinitely, since `subprocess.run` was called without a timeout. Treat a timeout (or a missing python3) as "pip not installed" so the bootstrap proceeds to install it rather than hanging. https://claude.ai/code/session_01447pnRM4ogyxs5tVCUNDZW
Sign in to join this conversation.