[build] Ensure `compat._legacy` is packed in executables

Fixes 9196cbfe8b (commitcomment-72192406)
pull/3560/head
pukkandan 2 years ago
parent 059bc4db19
commit 7ab56be2c7
No known key found for this signature in database
GPG Key ID: 7EEE9E1E817D0A39

@ -47,6 +47,7 @@ def main():
'--noconfirm',
*dependency_options(),
*opts,
'--collect-submodules=yt_dlp',
'yt_dlp/__main__.py',
]
print(f'Running PyInstaller with {opts}')

@ -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

Loading…
Cancel
Save