Files
MINGW-packages/mingw-w64-python3/0440-MINGW-setup-_ssl-module.patch
2015-09-21 15:47:39 +03:00

19 lines
855 B
Diff

diff -Naur Python-3.5.0-orig/setup.py Python-3.5.0/setup.py
--- Python-3.5.0-orig/setup.py 2015-09-21 13:41:41.508698300 +0300
+++ Python-3.5.0/setup.py 2015-09-21 13:41:45.377311400 +0300
@@ -826,10 +826,13 @@
if (ssl_incs is not None and
ssl_libs is not None):
+ _ssl_libs = ['ssl', 'crypto']
+ if host_platform.startswith(('mingw', 'win')):
+ _ssl_libs += ['ws2_32']
exts.append( Extension('_ssl', ['_ssl.c'],
include_dirs = ssl_incs,
library_dirs = ssl_libs,
- libraries = ['ssl', 'crypto'],
+ libraries = _ssl_libs,
depends = ['socketmodule.h']), )
else:
missing.append('_ssl')