Skip to content

Commit

Permalink
[build] Make sure deprecated modules are added
Browse files Browse the repository at this point in the history
  • Loading branch information
pukkandan committed Jul 15, 2023
1 parent 3d2623a commit 131d132
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion setup.py
Expand Up @@ -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,
}
Expand Down
3 changes: 2 additions & 1 deletion yt_dlp/__pyinstaller/hook-yt_dlp.py
Expand Up @@ -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
Expand Down

0 comments on commit 131d132

Please sign in to comment.