title: OpenSSL in Python 2.5.2 not working
body: <p>I am attempting to build Python 2.5.2 with SSL as a separate binary using</p>
  
  <blockquote>
    <p>./configure<br>
    make<br>
    make altinstall (with and without the -lssl option)</p>
  </blockquote>
  
  <p>I did check first that I have openSSL both the regular and development package:</p>
  
  <blockquote>
    <p>$ dpkg --get-selections | grep ssl<br>
    libio-socket-ssl-perl<br>
    libnet-ssleay-perl<br>
    libssl-dev<br>
    libssl-doc<br>
    libssl1.0.0<br>
    libssl1.0.0:i386<br>
    openssl<br>
    python-openssl<br>
    ssl-cert<br></p>
  </blockquote>
  
  <p>I downloaded Python 2.5.2 and edited the following lines in Modules/Setup.dist:</p>
  
  <blockquote>
    <p>_socket socketmodule.c<br>
    SSL=/usr/local/ssl<br>
    _ssl _ssl.c \<br>
           -DUSE_SSL -I$(SSL)/include -I$(SSL)/include/openssl \<br>
           -L$(SSL)/lib -lssl -lcrypto<br></p>
  </blockquote>
  
  <p>There are numerous blog posts on this issue and here are two that I've seen (I can't post more than 2) - describing the process I have tried:
  <a href="http://agiletesting.blogspot.com/2008/05/compiling-python-25-with-ssl-support.html" rel="nofollow">http://agiletesting.blogspot.com/2008/05/compiling-python-25-with-ssl-support.html</a><br>
  <a href="http://paltman.com/2007/11/15/getting-ssl-support-in-python-251" rel="nofollow">http://paltman.com/2007/11/15/getting-ssl-support-in-python-251</a><br></p>
  
  <p>But after doing the configure, make etc as above, when I do python2.5 to test it, this happens:</p>
  
  <blockquote>
    <p>>>> import ssl<br>
    Traceback (most recent call last):<br>
     File "<code>&lt;stdin</code>>", line 1, in <code>&lt;module</code>><br>
    ImportError: No module named ssl<br></p>
  </blockquote>
  
  <p>I'm basically out of things to try - would appreciate any help or pointers as to what to check or things to do to make it work. I understand that Python 2.7 has SSL already, but for other compatibility reasons I have to use 2.5. I am using Ubuntu 11.10 (Oneiric). Thanks!</p>