The PYTHON_CFGDIR variable is more or less something like /usr/lib64/python3.12/config.
Not only does this directory not exist on Python 3.6+ (it is called differently), but there is no libpython.so in it.
Adding it to LD paths makes no difference.
I could fix up the way the path is determined,
but I decided not to touch this code not to break old use cases.
Instead, the directory is only added to LD paths when there is something relevant in it.
The PYTHON_CFGDIR variable is more or less something like /usr/lib64/python3.12/config.
Not only does this directory not exist on Python 3.6+ (it is called differently), but there is no libpython.so in it. Adding it to LD paths makes no difference.
I could fix up the way the path is determined, but I decided not to touch this code not to break old use cases.
Instead, the directory is only added to LD paths when there is something relevant in it.
Fixes https://github.com/GrahamDumpleton/mod_wsgi/issues/872