Commit daaa4d9
fbcode_builder: skip 'sudo' in install-system-deps when unavailable
Summary:
Containers that don't ship sudo (e.g. the manylinux CI image) run as
root, so prepending 'sudo' to dnf/apt-get just fails with "command not
found". Probe shutil.which("sudo") and only prepend when it's on PATH;
also drop --preserve-env=http_proxy in the no-sudo path since that flag
is sudo-specific.
Reviewed By: bigfootjon
Differential Revision: D104428968
fbshipit-source-id: 1684a3bf6ffa4e13e045619d0ac48e4f244cfe631 parent 5b17449 commit daaa4d9
1 file changed
Lines changed: 8 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
445 | 445 | | |
446 | 446 | | |
447 | 447 | | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
448 | 452 | | |
449 | 453 | | |
450 | 454 | | |
451 | 455 | | |
452 | | - | |
| 456 | + | |
453 | 457 | | |
454 | 458 | | |
455 | 459 | | |
456 | 460 | | |
457 | 461 | | |
458 | | - | |
459 | | - | |
460 | | - | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
461 | 465 | | |
462 | 466 | | |
463 | 467 | | |
| |||
0 commit comments