New submission from Christian Heimes <li...@cheimes.de>:

Starting with #31399 Python will require some OpenSSL 1.0.2 features. The 
features are not available in LibreSSL yet. There is no easy way to detect the 
feature from setup.py. The inc_dir variable in setup.py does not reflect 
CPPFLAG. I tried "self.compiler.preprocess()" but run into more issues. For 
example prints to stderr in error cases.

https://www.gnu.org/software/autoconf-archive/ax_check_openssl.html makes it 
easy to check for working OpenSSL. It uses either pkg-config or falls back to 
manual detection in common locations.

Based on the M4 macro it is easy to check for features like working 
X509_VERIFY_PARAM_set1_host() function.

----------
components: Extension Modules, Installation
messages: 310277
nosy: christian.heimes
priority: normal
severity: normal
status: open
title: Use autoconf to detect OpenSSL and libssl features
type: behavior
versions: Python 3.7

_______________________________________
Python tracker <rep...@bugs.python.org>
<https://bugs.python.org/issue32598>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to