[issue45573] Use pkg-config autoconf macros to detect flags for Modules/Setup

Ned Deily report at bugs.python.org
Wed Nov 10 17:48:33 EST 2021


Ned Deily <nad at python.org> added the comment:

SGTM,2

This all sounds great. I think a goal here should be to remove all header and lib file searching from setup.py as that has always been a bug magnet. Perhaps one workaround for those libs that don't (yet) provide .pc files would be for us to supply reasonable default .pc for them, if possible, so that most builders wouldn't have to set the MODULE_xxx_*FLAGS variables while still removing the header/lib file searching from setup.py? Also it would be great to document how using pkg-config works in generic cross-compiling cases; we should strive to make at least the most common cases just work with minimal tweaking of configure arguments.

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue45573>
_______________________________________


More information about the Python-bugs-list mailing list