diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-09 15:35:17 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2021-06-09 15:37:15 +0530 |
commit | b5c5d84f60addd49a010a1f485d28f1b41676631 (patch) | |
tree | 82f33b6f3d12e309a65dae6d92c2c0d9b12d7103 /yt_dlp/update.py | |
parent | aa75e51f992c206b07ab4de592f11a871827bf4b (diff) | |
download | hypervideo-pre-b5c5d84f60addd49a010a1f485d28f1b41676631.tar.lz hypervideo-pre-b5c5d84f60addd49a010a1f485d28f1b41676631.tar.xz hypervideo-pre-b5c5d84f60addd49a010a1f485d28f1b41676631.zip |
Revert "[build] Build Windows x86 version with py3.8"
This reverts commit aa75e51f992c206b07ab4de592f11a871827bf4b.
See #390
This is being reverted instead of modified due to #388
Diffstat (limited to 'yt_dlp/update.py')
-rw-r--r-- | yt_dlp/update.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/yt_dlp/update.py b/yt_dlp/update.py index d3681b832..c49c78d4b 100644 --- a/yt_dlp/update.py +++ b/yt_dlp/update.py @@ -89,9 +89,13 @@ def run_update(ydl): err = None if isinstance(globals().get('__loader__'), zipimporter): - pass + # We only support python 3.6 or above + if sys.version_info < (3, 6): + err = 'This is the last release of yt-dlp for Python version %d.%d! Please update to Python 3.6 or above' % sys.version_info[:2] elif hasattr(sys, 'frozen'): - pass + # Python 3.6 supports only vista and above + if sys.getwindowsversion()[0] < 6: + err = 'This is the last release of yt-dlp for your version of Windows. Please update to Windows Vista or above' else: err = 'It looks like you installed yt-dlp with a package manager, pip, setup.py or a tarball. Please use that to update' if err: |