[build] Exclude pkg_resources from being collected (#13320)

Closes #13311
Authored by: bashonly
This commit is contained in:
bashonly 2025-05-27 18:11:58 -05:00 committed by GitHub
parent f7bbf5a617
commit cc749a8a3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 5 additions and 1 deletions

View file

@ -36,6 +36,9 @@ def main():
f'--name={name}',
'--icon=devscripts/logo.ico',
'--upx-exclude=vcruntime140.dll',
# Ref: https://github.com/yt-dlp/yt-dlp/issues/13311
# https://github.com/pyinstaller/pyinstaller/issues/9149
'--exclude-module=pkg_resources',
'--noconfirm',
'--additional-hooks-dir=yt_dlp/__pyinstaller',
*opts,