-
Notifications
You must be signed in to change notification settings - Fork 5
Build instructions
Thom Nichols edited this page Jan 8, 2014
·
5 revisions
Building is fairly straightforward, however note you might need the -I and -L flags as shown below if you're using Mac + Homebrew:
git clone https://github.com/EnerNOC/pyopenssl.git
cd pyopenssl
git checkout tls1.2
# build pyopenssl:
python setup.py build_ext \
-I/usr/local/Cellar/openssl/1.0.1e/include \
-L/usr/local/Cellar/openssl/1.0.1e/lib
python setup.py build_clib
python setup.py build
python setup.py install
# note if you've already activated your virtualenv, it will install there
# test it out:
python -c "from OpenSSL import SSL; print SSL.TLSv1_2_METHOD"Note you might also be able to pip install directly from this repo like so:
pip install pycrypto
pip install git+https://github.com/EnerNOC/pyopenssl.git@tls1.2#egg=pyopenssl