Compiling python without ssl?

Austin Bingham austin.bingham at
Fri Apr 1 13:36:52 CEST 2011

Is there any way to compile python (3.1.3, in case it matters) without
ssl support? OpenSSL is on my system, and configure finds it, but I
can't find a way to tell configure to explicitly ignore it.

I need a version of python without ssl for trade compliance reasons (I
don't make the dumb rules, I just follow 'em), and we used to be able
to just remove the ssl module after the build. With more recent
releases, though, this approach causes problems with e.g. hashlib.

Ideally I'd like something like "configure --disable-ssl", but I can
also do surgery on configure or something if that's what it takes.
Thanks in advance!


More information about the Python-list mailing list