setup.py doesn't appear to treat --openssl very well in 0.27.0
Following this message on openssl-users, I got curious and decided to have a quick look into setup.py, and I may have found a flaw.
In my defense, I'm not very good at python, so I may have missed some subtleties, and if I did, I'm sorry for the noise.
I do get worried that the self.openssl
only appears to be used to specify the locations of OpenSSL libraries, but not the header file directory. As a matter of fact, for Linux specifically, the header file directory seems to be hardcoded to /usr/include/openssl
, and not given at all on non-Linux platforms.
I took a look back at 0.26.4 too. --openssl
seems to get used a bit better there, and the treatment it gets in 0.27.0 (and master) seems to go backwards a step.
And btw, the header file directory should be os.path.join(self.openssl, 'include')
, not os.path.join(self.openssl, 'include', 'openssl')
. The last component is taken care of by the #include
statements for OpenSSL stuff:
# include <openssl/err.h>