classification
Title: python-config ldflags, PEP 513 and explicit linking to libpython in python extensions
Type: behavior Stage:
Components: Distutils Versions:
process
Status: open Resolution:
Dependencies: Superseder:
Assigned To: Nosy List: dimi, dstufft, eric.araujo, njs
Priority: normal Keywords:

Created on 2018-05-10 15:42 by dimi, last changed 2018-10-18 19:17 by njs.

Messages (2)
msg316368 - (view) Author: dimi (dimi) Date: 2018-05-10 15:42
The python-config outputs ldflag for explicit linking to libpyhton, which is a good idea in many use cases. However, this is inconsistent with the PEP 513 recommendation for building manylinux1 python extensions (https://www.python.org/dev/peps/pep-0513/) that requires avoiding explicit linking to libpythonX.Y.so.1.
msg327997 - (view) Author: Nathaniel Smith (njs) * (Python committer) Date: 2018-10-18 19:17
Also, python-config is inconsistent with distutils. It should link to libpython only in the cases where distutils does. (IIRC it's supposed to depend on whether python was built with --enable-shared.)
History
Date User Action Args
2018-10-18 19:17:01njssetnosy: + njs
messages: + msg327997
2018-05-10 15:42:35dimicreate