New submission from Björn Pollex <bjoern.pol...@soundcloud.com>:

When building Python 3.7.2 using pyenv on MacOS, it will use `--with-openssl` 
to configure OpenSSL. With that option, the compiler options for OpenSSL will 
be passed via `OPENSSL_*` variables, rather than normal compiler flags (e.g. 
`OPENSSL_LDFLAGS` vs. `LDFLAGS`). When compiling an extension, these flags will 
not be propagated by `distutils`, and so an extension that depends on OpenSSL 
fails to compile.

I'm not sure what the expected behavior here is. Should the package handle this 
by querying `sysconfig` directly in `setup.py`? Or should this be handled 
automatically by `distutils`?

Specifically, I ran into this issue when trying to install `mysqlclient-python` 
(https://github.com/PyMySQL/mysqlclient-python).

----------
messages: 355299
nosy: Björn Pollex
priority: normal
severity: normal
status: open
title: OPENSSL_* flags not propagated to extensions during build
versions: Python 3.7

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

Reply via email to