mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-23 13:36:35 +00:00
Fallback to run_whl
Prefer `pip_runner` but try the `pip` wheel too, if it's missing.
This commit is contained in:
parent
4e51d54ec1
commit
ae07c1ce89
@ -5,12 +5,13 @@ pip3() {
|
||||
|
||||
# pipenv
|
||||
pip_runner='/usr/lib/python3/dist-packages/pipenv/patched/pip/__pip-runner__.py'
|
||||
test -s "${pip_runner}" || pip_runner=''
|
||||
|
||||
# python3-pip-whl
|
||||
pip_whl="$(ls -1r /usr/share/python-wheels/pip-*-py3-none-any.whl | head -n 1)"
|
||||
run_whl="${pip_whl}/pip"
|
||||
|
||||
python3 "${pip_runner}" "$@"
|
||||
python3 "${pip_runner:-"${run_whl}"}" "$@"
|
||||
}
|
||||
|
||||
pip3 install --upgrade --break-system-packages yt-dlp
|
||||
|
Loading…
Reference in New Issue
Block a user