Hi Jeff,

When compiling cryptography your compiler and linker will use the paths that 
are provided. Homebrew does not put OpenSSL in the include or library path for 
a variety of good reasons, so to compile against homebrew OpenSSL you'll need 
to follow the instructions here: 
https://cryptography.io/en/latest/installation/#using-your-own-openssl-on-os-x

If you're running a more recent pip (7+) you'll also need to either delete your 
wheel cache (as it now has the wrong compiled version cached) or pass 
--no-use-wheel as a flag.

-Paul

On August 31, 2015 at 6:43:03 PM, Jeff Feng (jian...@us.ibm.com) wrote:

Hi,

I'm setting up development environment on my Mac, and using virtualenv.

When I run cryptography test cases, I found the old OS X bundled openssl was 
used, not the latest openssl installed by Homebrew.

So, I did version check in my virtualenv:

$ which openssl
/usr/local/bin/openssl <-- looks good

$ openssl version
OpenSSL 0.9.8zg 14 July 2015 <----errh, not right.

$ /usr/local/bin/openssl version
OpenSSL 1.0.2d 9 Jul 2015 <----- it's right


Anyone have idea which config I missed ?

Thanks in advance.

- Jeff


_______________________________________________  
Cryptography-dev mailing list  
Cryptography-dev@python.org  
https://mail.python.org/mailman/listinfo/cryptography-dev  
_______________________________________________
Cryptography-dev mailing list
Cryptography-dev@python.org
https://mail.python.org/mailman/listinfo/cryptography-dev

Reply via email to