Commit 08f3390
fix: improve install.sh to work in virtual environments
Fixed pipx installation to handle both system Python and virtual
environments properly.
Changes:
- Skip pipx installation entirely when LOCAL_INSTALL=true (uses pip
directly for editable installs)
- Add fallback chain for pipx installation:
1. Try --user flag (system install)
2. Try --user --break-system-packages (newer pip)
3. Try without --user (works in venv)
- Better error handling with warnings instead of hard failures
- Clearer status messages showing installation method and version
Now supports all scenarios:
- System Python installation
- Virtual environment with LOCAL_INSTALL=true
- Virtual environment for regular PyPI install
- CI/CD environments
Fixes issue where install.sh would fail in fresh virtual environments
with "No module named pipx" error.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent 7d312c3 commit 08f3390
1 file changed
+21
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
301 | 301 | | |
302 | 302 | | |
303 | 303 | | |
| 304 | + | |
| 305 | + | |
| 306 | + | |
| 307 | + | |
| 308 | + | |
| 309 | + | |
304 | 310 | | |
305 | 311 | | |
306 | | - | |
| 312 | + | |
| 313 | + | |
| 314 | + | |
| 315 | + | |
| 316 | + | |
| 317 | + | |
| 318 | + | |
| 319 | + | |
| 320 | + | |
| 321 | + | |
| 322 | + | |
307 | 323 | | |
308 | | - | |
| 324 | + | |
309 | 325 | | |
310 | 326 | | |
311 | 327 | | |
312 | | - | |
| 328 | + | |
313 | 329 | | |
314 | | - | |
| 330 | + | |
315 | 331 | | |
316 | | - | |
| 332 | + | |
317 | 333 | | |
318 | 334 | | |
319 | 335 | | |
| |||
0 commit comments