From 8ee6bcdd43e887131a1fdc08c5ec362d0c53a194 Mon Sep 17 00:00:00 2001 From: Nabil Ghodbane Date: Tue, 26 Jan 2021 11:03:43 +0100 Subject: [PATCH] fix broken Python 2.7.10 and numpy builds since recent openssl update --- products/Python.pyconf | 5 +---- products/patches/Python-2.7.10-ssl.patch | 12 ++++++++++++ 2 files changed, 13 insertions(+), 4 deletions(-) create mode 100644 products/patches/Python-2.7.10-ssl.patch diff --git a/products/Python.pyconf b/products/Python.pyconf index 8e18b56..4bcb1bf 100755 --- a/products/Python.pyconf +++ b/products/Python.pyconf @@ -36,10 +36,7 @@ version_2_6_6 : version_2_7_10 : { - patches : [ - #'remove-windows-python-subprojects.patch', #patch Windows non applicable sur Linux - #'enable-windows-plugin-compilation.patch', - ] + patches : ['Python-2.7.10-ssl.patch'] } version_3_6_5 : diff --git a/products/patches/Python-2.7.10-ssl.patch b/products/patches/Python-2.7.10-ssl.patch new file mode 100644 index 0000000..f660005 --- /dev/null +++ b/products/patches/Python-2.7.10-ssl.patch @@ -0,0 +1,12 @@ +--- Python/setup.py 2015-05-23 18:09:25.000000000 +0200 ++++ Python_new/setup.py 2021-01-26 10:54:30.894406545 +0100 +@@ -804,7 +804,8 @@ class PyBuildExt(build_ext): + ['/usr/local/ssl/lib', + '/usr/contrib/ssl/lib/' + ] ) +- ++ ssl_incs = None ++ ssl_libs = None + if (ssl_incs is not None and + ssl_libs is not None): + exts.append( Extension('_ssl', ['_ssl.c'], -- 2.30.2