diff options
author | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-07-15 16:39:45 +0530 |
---|---|---|
committer | pukkandan <pukkandan.ytdlp@gmail.com> | 2023-07-15 16:47:55 +0530 |
commit | 131d132da5c98c6c78bd7eed4b37f4458561b3d9 (patch) | |
tree | 0b9341a0160250d2954d61a606e46fd897459e4c | |
parent | 3d2623a898196640f7cc0fc8b70118ff19e6925d (diff) | |
download | hypervideo-pre-131d132da5c98c6c78bd7eed4b37f4458561b3d9.tar.lz hypervideo-pre-131d132da5c98c6c78bd7eed4b37f4458561b3d9.tar.xz hypervideo-pre-131d132da5c98c6c78bd7eed4b37f4458561b3d9.zip |
[build] Make sure deprecated modules are added
-rw-r--r-- | setup.py | 3 | ||||
-rw-r--r-- | yt_dlp/__pyinstaller/hook-yt_dlp.py | 3 |
2 files changed, 4 insertions, 2 deletions
@@ -65,7 +65,8 @@ def py2exe_params(): 'excludes': ['Crypto', 'Cryptodome'], # py2exe cannot import Crypto 'dll_excludes': ['w9xpopen.exe', 'crypt32.dll'], # Modules that are only imported dynamically must be added here - 'includes': ['yt_dlp.compat._legacy'], + 'includes': ['yt_dlp.compat._legacy', 'yt_dlp.compat._deprecated', + 'yt_dlp.utils._legacy', 'yt_dlp.utils._deprecated'], }, 'zipfile': None, } diff --git a/yt_dlp/__pyinstaller/hook-yt_dlp.py b/yt_dlp/__pyinstaller/hook-yt_dlp.py index 63dcdffe0..88c2b8b28 100644 --- a/yt_dlp/__pyinstaller/hook-yt_dlp.py +++ b/yt_dlp/__pyinstaller/hook-yt_dlp.py @@ -18,7 +18,8 @@ def pycryptodome_module(): def get_hidden_imports(): - yield 'yt_dlp.compat._legacy' + yield from ('yt_dlp.compat._legacy', 'yt_dlp.compat._deprecated') + yield from ('yt_dlp.utils._legacy', 'yt_dlp.utils._deprecated') yield pycryptodome_module() yield from collect_submodules('websockets') # These are auto-detected, but explicitly add them just in case |