This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author fede.evol
Recipients docs@python, fede.evol
Date 2021-04-19.09:06:07
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1618823167.79.0.105127180169.issue43886@roundup.psfhosted.org>
In-reply-to
Content
Hello,
We had lately some issues with various possible variants of compilation (static vs dynamic) with reference to both embedding and extending Python. There are a bunch of tickets on the topic (ie. #21536 or #34309) but I guess one important point is that the documentation seems to be not very clear on this. Also various Linux distros seem to take very different approaches (static/dynamic).

Infact from the current documentation it seems unclear if python-config should be used for both or not. We found also some references to a newer --embed flag (see ie. #36721) which is not mentioned in the documentation.
Some other sources suggest that python-config should not be used when Python is build with Py_ENABLE_SHARED=1. (ref. here: https://github.com/conda/conda-build/issues/2738#issuecomment-371148021)

Also the example looks probably outdated, as it mentions Python 3.4

It would be nice if some light would be shed on the correct practice to use and the official documentation updated.

Thanks,
Federico
History
Date User Action Args
2021-04-19 09:06:07fede.evolsetrecipients: + fede.evol, docs@python
2021-04-19 09:06:07fede.evolsetmessageid: <1618823167.79.0.105127180169.issue43886@roundup.psfhosted.org>
2021-04-19 09:06:07fede.evollinkissue43886 messages
2021-04-19 09:06:07fede.evolcreate