Skip to content

Instantly share code, notes, and snippets.

@Zuxelus
Zuxelus / python-2.7.18-custom-static-openssl.patch
Created December 13, 2023 16:32
static openssl patch for python 2.7.14
--- Python-2.7.18.orig/setup.py 2023-12-12 22:56:54.594446400 +0200
+++ Python-2.7.18.new/setup.py 2023-12-12 23:32:11.849161387 +0200
@@ -854,10 +854,14 @@
depends=['socketmodule.h'],
libraries=math_libs) )
# Detect SSL support for the socket module (via _ssl)
+ openssl_root = os.getenv('OPENSSL_ROOT')
+
search_for_ssl_incs_in = [
'/usr/local/ssl/include',