]> jfr.im git - yt-dlp.git/commitdiff
[build] Make sure deprecated modules are added
authorpukkandan <redacted>
Sat, 15 Jul 2023 11:09:45 +0000 (16:39 +0530)
committerpukkandan <redacted>
Sat, 15 Jul 2023 11:17:55 +0000 (16:47 +0530)
setup.py
yt_dlp/__pyinstaller/hook-yt_dlp.py

index ccfcf4252080b08230fd52f12909aa9f79a2f38d..a2f9f55c365cf4821bc0ff17bf7669f4a41fc753 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -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,
     }
index 63dcdffe026b122ff4ad1c2c6f2c092bc3742b12..88c2b8b2852546b295458e3cf0777de323623b6a 100644 (file)
@@ -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