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.dist2005-12-2804:37:16.000000000+1100+++Modules/Setup.dist2012-05-2323:31:22.000000000+1000@@ -198,14+198,14 @@#_csv _csv.c# Socket module helper for socket(2)-#_socket socketmodule.c+_socketsocketmodule.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).
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.