Okay, I've done some researches. Some theory:
Basically, OpenSSL is a library libssl and crypto - libcrypto. But we need just a libssl. And, the most interesting thing, it depends on basic things.
I want to use PyGithub, so i need to make it able to use HTTPSConnection httplib class. To use it, it needs _ssl module. _ssl module, in Linux, is a _ssl.so, module, compiled with shared library libssl.
So, the goal is to compile _ssl.so with static libssl. Here we go:
- Download Python 2.6.6(as SublimeText2 uses) & untar
- Download OpenSSL. I want to use latest - 1.0.1c & untar
- cd srctmp/openssl && ./config --prefix=/home/deoteo/srctmp/local/ --openssldir=/home/deoteo/srctmp/local/openssl -fPIC
- make -j5 (nah, it uses just 2) && make test && make install
- cd srctmp/python && ./configure --prefix=/home/rhgp/srctmp/local/ --enable-unicode=ucs4 //yea, python from st2 compiled with unicode_wide
- Modify Setup in python/Modules to use needed openssl
- make -j5
- make install
Something like this. And now I got python 2.6.6, similar to bundled with ST2. But with latest OpenSSL support.
So, maybe it is possible to build few _ssl.so and another libraries for common systems and distribute it with ST2?