[New-bugs-announce] [issue16848] Mac OS X: python-config --ldflags and location of Python.framework

Samuel John report at bugs.python.org
Thu Jan 3 12:32:54 CET 2013


New submission from Samuel John:

Some tools use `python-config --ldflags` to get the flags in order to link against the Python lib on OS X (for example gst-python from pygtk (2.x).

For framework builds, `python-config --ldflags` returns (among few other):

    -u _PyMac_Error Python.framework/Versions/2.7/Python

which is an incomplete path.

This issue is almost a duplicate of http://bugs.python.org/issue3588 and the fix discussed there would work. However I report this for Python 2.7.

We at Homebrew propose a very similar fix but I'd prefer the one in issue3588:

    LINKFORSHARED = -u _PyMac_Error -framework Python
    LDFLAGS += -F$(PYTHONFRAMEWORKPREFIX)

----------
components: Build
messages: 178936
nosy: hynek, ned.deily, ronaldoussoren, samueljohn
priority: normal
severity: normal
status: open
title: Mac OS X: python-config --ldflags and location of Python.framework
type: behavior
versions: Python 2.7

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue16848>
_______________________________________


More information about the New-bugs-announce mailing list