A feature-rich command-line audio/video downloader
[build] Use Ubuntu 20.04 and Python 3.9 for Linux ARM builds (#8638)
bashonlydd2e24446954
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 00326416d8..fdca5d702e 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -199,22 +199,24 @@ jobs:GITHUB_WORKFLOW: buildgithubToken: ${{ github.token }} # To cache imagearch: ${{ matrix.architecture }}- distro: ubuntu18.04 # Standalone executable should be built on minimum supported OS+ distro: ubuntu20.04 # Standalone executable should be built on minimum supported OSdockerRunArgs: --volume "${PWD}/repo:/repo"install: | # Installing Python 3.10 from the Deadsnakes repo raises errorsapt update- apt -y install zlib1g-dev libffi-dev python3.8 python3.8-dev python3.8-distutils python3-pip- python3.8 -m pip install -U pip setuptools wheel- # Cannot access any files from the repo directory at this stage- python3.8 -m pip install -U Pyinstaller mutagen pycryptodomex websockets brotli certifi secretstorage cffi+ apt -y install zlib1g-dev libffi-dev python3.9 python3.9-dev python3.9-distutils python3-pip \+ python3-secretstorage # Cannot build cryptography wheel in virtual armv7 environment+ python3.9 -m pip install -U pip wheel 'setuptools>=71.0.2'+ # XXX: Keep this in sync with pyproject.toml (it can't be accessed at this stage) and exclude secretstorage+ python3.9 -m pip install -U Pyinstaller mutagen pycryptodomex brotli certifi cffi \+ 'requests>=2.32.2,<3' 'urllib3>=1.26.17,<3' 'websockets>=13.0'run: |cd repo- python3.8 devscripts/install_deps.py -o --include build- python3.8 devscripts/install_deps.py --include pyinstaller --include secretstorage # Cached version may be out of date- python3.8 devscripts/update-version.py -c "${{ inputs.channel }}" -r "${{ needs.process.outputs.origin }}" "${{ inputs.version }}"- python3.8 devscripts/make_lazy_extractors.py- python3.8 -m bundle.pyinstaller+ python3.9 devscripts/install_deps.py -o --include build+ python3.9 devscripts/install_deps.py --include pyinstaller # Cached versions may be out of date+ python3.9 devscripts/update-version.py -c "${{ inputs.channel }}" -r "${{ needs.process.outputs.origin }}" "${{ inputs.version }}"+ python3.9 devscripts/make_lazy_extractors.py+ python3.9 -m bundle.pyinstallerif ${{ vars.UPDATE_TO_VERIFICATION && 'true' || 'false' }}; thenarch="${{ (matrix.architecture == 'armv7' && 'armv7l') || matrix.architecture }}"@@ -527,16 +529,20 @@ jobs:lock 2023.11.16 (?!win_x86_exe).+ Python 3\.7lock 2023.11.16 win_x86_exe .+ Windows-(?:Vista|2008Server)lock 2024.10.22 py2exe .++ lock 2024.10.22 linux_(?:armv7l|aarch64)_exe .+ glibc 2\.(?:[12]?\d|30)\blockV2 yt-dlp/yt-dlp 2022.08.18.36 .+ Python 3\.6lockV2 yt-dlp/yt-dlp 2023.11.16 (?!win_x86_exe).+ Python 3\.7lockV2 yt-dlp/yt-dlp 2023.11.16 win_x86_exe .+ Windows-(?:Vista|2008Server)lockV2 yt-dlp/yt-dlp 2024.10.22 py2exe .++ lockV2 yt-dlp/yt-dlp 2024.10.22 linux_(?:armv7l|aarch64)_exe .+ glibc 2\.(?:[12]?\d|30)\blockV2 yt-dlp/yt-dlp-nightly-builds 2023.11.15.232826 (?!win_x86_exe).+ Python 3\.7lockV2 yt-dlp/yt-dlp-nightly-builds 2023.11.15.232826 win_x86_exe .+ Windows-(?:Vista|2008Server)lockV2 yt-dlp/yt-dlp-nightly-builds 2024.10.22.051025 py2exe .++ lockV2 yt-dlp/yt-dlp-nightly-builds 2024.10.22.051025 linux_(?:armv7l|aarch64)_exe .+ glibc 2\.(?:[12]?\d|30)\blockV2 yt-dlp/yt-dlp-master-builds 2023.11.15.232812 (?!win_x86_exe).+ Python 3\.7lockV2 yt-dlp/yt-dlp-master-builds 2023.11.15.232812 win_x86_exe .+ Windows-(?:Vista|2008Server)lockV2 yt-dlp/yt-dlp-master-builds 2024.10.22.045052 py2exe .++ lockV2 yt-dlp/yt-dlp-master-builds 2024.10.22.060347 linux_(?:armv7l|aarch64)_exe .+ glibc 2\.(?:[12]?\d|30)\bEOF- name: Sign checksum filesdiff --git a/yt_dlp/update.py b/yt_dlp/update.pyindex 0172acfd63..3a8d78de41 100644--- a/yt_dlp/update.py+++ b/yt_dlp/update.py@@ -158,13 +158,6 @@ def _get_system_deprecation():return EXE_MSG_TMPL.format('Windows 7/Server 2008 R2', 'issues/10086', STOP_MSG)return None- # Temporary until aarch64/armv7l build flow is bumped to Ubuntu 20.04 and Python 3.9- elif variant in ('linux_aarch64_exe', 'linux_armv7l_exe'):- libc_ver = version_tuple(os.confstr('CS_GNU_LIBC_VERSION').partition(' ')[2])- if libc_ver < (2, 31):- return EXE_MSG_TMPL.format('system glibc version < 2.31', 'pull/8638', STOP_MSG)- return None-return f'Support for Python version {major}.{minor} has been deprecated. {PYTHON_MSG}'@@ -357,7 +350,8 @@ class Updater:continueself._report_error(- f'yt-dlp cannot be updated to {resolved_tag} since you are on an older Python version', True)+ f'yt-dlp cannot be updated to {resolved_tag} since you are on an older Python version '+ 'or your operating system is not compatible with the requested build', True)return Nonereturn resolved_tag