/
githubmirror
/
yt-dlp
Обзор
Документация
Войти
/
githubmirror
/
yt-dlp
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
bundle/docker/linux/build.sh
36 строк
1 KB
bashonly
[build] Rename requirements files to clean up dependency graph (#16740)
16 май 2026, 23:30
Не верифицирован
16 май 2026, 23:30
32f1671
Код
Авторство
О чём код?
#!/bin/bash set -exuo pipefail if [[ -z "${PYTHON_VERSION:-}" ]]; then PYTHON_VERSION="3.14" echo "Defaulting to using Python ${PYTHON_VERSION}" fi # Set up virtual environment rm -rf .venv py"${PYTHON_VERSION}" -m venv .venv --without-pip PYTHONPATH="$(py"${PYTHON_VERSION}" -c 'import sysconfig; print(sysconfig.get_path("purelib"))')" export PYTHONPATH # shellcheck disable=SC1091 source .venv/bin/activate python -m pip install -U --require-hashes -r "bundle/requirements/pyinstaller.txt" python -m pip install -U --require-hashes -r "bundle/requirements/${REQUIREMENTS}.txt" python -m devscripts.make_lazy_extractors python devscripts/update-version.py -c "${CHANNEL}" -r "${ORIGIN}" "${VERSION}" if [[ -z "${SKIP_ONEDIR_BUILD:-}" ]]; then mkdir -p /build python -m bundle.pyinstaller --onedir --distpath=/build pushd "/build/${EXE_NAME}" chmod +x "${EXE_NAME}" python -m zipfile -c "/yt-dlp/dist/${EXE_NAME}.zip" ./ popd fi if [[ -z "${SKIP_ONEFILE_BUILD:-}" ]]; then python -m bundle.pyinstaller chmod +x "./dist/${EXE_NAME}" fi deactivate