[build] Ensure compat._legacy is packed in executables

Fixes https://github.com/yt-dlp/yt-dlp/commit/9196cbfe8bb7a6eb46037735b76f21963dfdc61a#commitcomment-72192406
This commit is contained in:
pukkandan
2022-04-26 15:11:01 +05:30
parent 059bc4db19
commit 7ab56be2c7
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -48,6 +48,8 @@ if sys.argv[1:2] == ['py2exe']:
'dist_dir': './dist',
'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'],
}
},
'zipfile': None