mirror of
https://github.com/yt-dlp/yt-dlp.git
synced 2024-11-25 02:45:12 +00:00
[build] Ensure compat._legacy
is packed in executables
Fixes 9196cbfe8b (commitcomment-72192406)
This commit is contained in:
parent
059bc4db19
commit
7ab56be2c7
2 changed files with 3 additions and 0 deletions
|
@ -47,6 +47,7 @@ def main():
|
||||||
'--noconfirm',
|
'--noconfirm',
|
||||||
*dependency_options(),
|
*dependency_options(),
|
||||||
*opts,
|
*opts,
|
||||||
|
'--collect-submodules=yt_dlp',
|
||||||
'yt_dlp/__main__.py',
|
'yt_dlp/__main__.py',
|
||||||
]
|
]
|
||||||
print(f'Running PyInstaller with {opts}')
|
print(f'Running PyInstaller with {opts}')
|
||||||
|
|
2
setup.py
2
setup.py
|
@ -48,6 +48,8 @@
|
||||||
'dist_dir': './dist',
|
'dist_dir': './dist',
|
||||||
'excludes': ['Crypto', 'Cryptodome'], # py2exe cannot import Crypto
|
'excludes': ['Crypto', 'Cryptodome'], # py2exe cannot import Crypto
|
||||||
'dll_excludes': ['w9xpopen.exe', 'crypt32.dll'],
|
'dll_excludes': ['w9xpopen.exe', 'crypt32.dll'],
|
||||||
|
# Modules that are only imported dynamically must be added here
|
||||||
|
'includes': ['yt_dlp.compat._legacy'],
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
'zipfile': None
|
'zipfile': None
|
||||||
|
|
Loading…
Reference in a new issue