mirror of
https://github.com/meeb/tubesync.git
synced 2025-06-24 14:06:36 +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
|
# pipenv
|
||||||
pip_runner='/usr/lib/python3/dist-packages/pipenv/patched/pip/__pip-runner__.py'
|
pip_runner='/usr/lib/python3/dist-packages/pipenv/patched/pip/__pip-runner__.py'
|
||||||
|
test -s "${pip_runner}" || pip_runner=''
|
||||||
|
|
||||||
# python3-pip-whl
|
# python3-pip-whl
|
||||||
pip_whl="$(ls -1r /usr/share/python-wheels/pip-*-py3-none-any.whl | head -n 1)"
|
pip_whl="$(ls -1r /usr/share/python-wheels/pip-*-py3-none-any.whl | head -n 1)"
|
||||||
run_whl="${pip_whl}/pip"
|
run_whl="${pip_whl}/pip"
|
||||||
|
|
||||||
python3 "${pip_runner}" "$@"
|
python3 "${pip_runner:-"${run_whl}"}" "$@"
|
||||||
}
|
}
|
||||||
|
|
||||||
pip3 install --upgrade --break-system-packages yt-dlp
|
pip3 install --upgrade --break-system-packages yt-dlp
|
||||||
|
Loading…
Reference in New Issue
Block a user