A feature-rich command-line audio/video downloader
Raise minimum recommended Python version to 3.10 (#13859)
bashonly23c658b9cbe3
diff --git a/yt_dlp/update.py b/yt_dlp/update.pyindex f85be2d08f..30cbf538e9 100644--- a/yt_dlp/update.py+++ b/yt_dlp/update.py@@ -139,7 +139,7 @@ def _get_binary_name():def _get_system_deprecation():- MIN_SUPPORTED, MIN_RECOMMENDED = (3, 9), (3, 9)+ MIN_SUPPORTED, MIN_RECOMMENDED = (3, 9), (3, 10)EXE_MSG_TMPL = ('Support for {} has been deprecated. ''See https://github.com/yt-dlp/yt-dlp/{} for details.\n{}')@@ -161,6 +161,13 @@ def _get_system_deprecation():if sys.version_info < MIN_SUPPORTED:return f'Python version {major}.{minor} is no longer supported! {PYTHON_MSG}'+ # Temporary until aarch64/armv7l build flow is bumped to Ubuntu 22.04 and Python 3.10+ if variant in ('linux_aarch64_exe', 'linux_armv7l_exe'):+ libc_ver = version_tuple(os.confstr('CS_GNU_LIBC_VERSION').partition(' ')[2])+ if libc_ver < (2, 35):+ return EXE_MSG_TMPL.format('system glibc version < 2.35', 'issues/13858', STOP_MSG)+ return None+return f'Support for Python version {major}.{minor} has been deprecated. {PYTHON_MSG}'