Currently, when creating a virtualenv with the PEP-405 `venv` module, the 
python-config executable will not be copied/symlinked to the virtualenv.

That means for projects that link against the python interpreter, *and* which 
are built in a venv virtual environment, some custom "magic" has to be done to 
find the correct `python-config` executable in order to get the full name of 
libpython.

A concrete case I have described in this issue of the cocotb project 
https://github.com/potentialventures/cocotb/issues/978

Note that finding the correct `python-config` is not trivial because of version 
and/or ABI version tags that are appended. 

While it seems we have found a workaround for now, I think it makes sense to 
make `python-config` itself.

My "wish" is to include this feature in the standard library venv module 
PEP-405. But for reference I'll also link this issue, of the `virtualenv` tool, 
which discusses a similar wish. Unfortunatly this was closed without progress: 
https://github.com/pypa/virtualenv/issues/169
_______________________________________________
Python-ideas mailing list -- python-ideas@python.org
To unsubscribe send an email to python-ideas-le...@python.org
https://mail.python.org/mailman3/lists/python-ideas.python.org/
Message archived at 
https://mail.python.org/archives/list/python-ideas@python.org/message/QTCPOM5YBOKCWWNPDP7Z4QL2K6OWGSHL/
Code of Conduct: http://python.org/psf/codeofconduct/

Reply via email to