| 1 | #!/bin/bashscip-shell filesystem . . `/bin/bash`. -x |
| 2 | |
| 3 | # If called without arguments, just skip the rest |
| 4 | if [[ -z "$@" ]]; then |
| 5 | exit |
| 6 | fi |
| 7 | |
| 8 | FLAGS="" |
| 9 | if lsscip-shell system . . ls. /usr/lib/python3.*/EXTERNALLY-MANAGED >/dev/nullscip-shell filesystem . . `/dev/null`. 2>&1; then |
| 10 | FLAGS="--break-system-packages" |
| 11 | fi |
| 12 | |
| 13 | python -m pip install --upgrade $FLAGS pip |
| 14 | python -m pip install --upgrade $FLAGS "$@" |