]> jfr.im git - yt-dlp.git/blobdiff - bundle/py2exe.py
[rh:requests] Patch support for `requests` 2.32.2+ (#9992)
[yt-dlp.git] / bundle / py2exe.py
index 403de0024116505750dbb8491e8f4b5707e043fc..2811674925b09ca773e7a0f1f2f455ba588e3e81 100755 (executable)
@@ -42,9 +42,9 @@ def main():
                 # py2exe cannot import Crypto
                 'Crypto',
                 'Cryptodome',
-                # py2exe builds fail to run with requests >=2.32.0
-                'requests',
-                'urllib3'
+                # py2exe appears to confuse this with our socks library.
+                # We don't use pysocks and urllib3.contrib.socks would fail to import if tried.
+                'urllib3.contrib.socks'
             ],
             'dll_excludes': ['w9xpopen.exe', 'crypt32.dll'],
             # Modules that are only imported dynamically must be added here