Skip to content

python2.4 on latest ubuntu doesn't have ssl support. #8

@djay

Description

@djay

The following patch needs to be applied however it looks like the detect os code doesn't differentiate ubuntu releases so I was confident making this change.

--- Modules/Setup.dist  2005-12-28 04:37:16.000000000 +1100
+++ Modules/Setup.dist  2012-05-23 23:31:22.000000000 +1000
@@ -198,14 +198,14 @@
 #_csv _csv.c

 # Socket module helper for socket(2)
-#_socket socketmodule.c
+_socket socketmodule.c

 # Socket module helper for SSL support; you must comment out the other
 # socket line above, and possibly edit the SSL variable:
-#SSL=/usr/local/ssl
-#_ssl _ssl.c \
-#  -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \
-#  -L$(SSL)/lib -lssl -lcrypto
+SSL=/usr/lib/ssl
+_ssl _ssl.c \
+   -DUSE_SSL -I/usr/include/openssl \
+   -L/usr/lib/ssl -lssl -lcrypto

 # The crypt module is now disabled by default because it breaks builds
 # on many systems (where -lcrypt is needed), e.g. Linux (I believe).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions