diff -Naur Python-3.7.0-orig/setup.py Python-3.7.0/setup.py --- Python-3.7.0-orig/setup.py 2018-06-30 11:16:26.482240500 +0300 +++ Python-3.7.0/setup.py 2018-06-30 11:16:33.143452200 +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