Files
MINGW-packages/mingw-w64-python3/0440-MINGW-setup-_ssl-module.patch

13 lines
596 B
Diff

diff -Naur Python-3.7.0-orig/setup.py Python-3.7.0/setup.py
--- Python-3.7.0-orig/setup.py 2018-07-12 10:21:22.900756300 +0300
+++ Python-3.7.0/setup.py 2018-07-12 10:21:28.345165900 +0300
@@ -2192,6 +2192,8 @@
openssl_includes = split_var('OPENSSL_INCLUDES', '-I')
openssl_libdirs = split_var('OPENSSL_LDFLAGS', '-L')
openssl_libs = split_var('OPENSSL_LIBS', '-l')
+ if host_platform.startswith(('mingw', 'win')):
+ openssl_libs += ['ws2_32']
if not openssl_libs:
# libssl and libcrypto not found
return None, None