mirror of
				https://github.com/yt-dlp/yt-dlp.git
				synced 2025-10-31 14:45:14 +00:00 
			
		
		
		
	[build] Make sure deprecated modules are added
This commit is contained in:
		
							
								
								
									
										3
									
								
								setup.py
									
									
									
									
									
								
							
							
						
						
									
										3
									
								
								setup.py
									
									
									
									
									
								
							| @@ -65,7 +65,8 @@ def py2exe_params(): | |||||||
|             '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 |             # 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, |         'zipfile': None, | ||||||
|     } |     } | ||||||
|   | |||||||
| @@ -18,7 +18,8 @@ def pycryptodome_module(): | |||||||
| 
 | 
 | ||||||
| 
 | 
 | ||||||
| def get_hidden_imports(): | 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 pycryptodome_module() | ||||||
|     yield from collect_submodules('websockets') |     yield from collect_submodules('websockets') | ||||||
|     # These are auto-detected, but explicitly add them just in case |     # These are auto-detected, but explicitly add them just in case | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 pukkandan
					pukkandan