mistake in Tiger's python sysconfig
mistake in Tiger's python sysconfig
- Subject: mistake in Tiger's python sysconfig
- From: email@hidden (Jack Howarth)
- Date: Thu, 9 Jun 2005 20:55:24 -0400 (EDT)
While building xplor-nih against the python framework in Tiger,
I noticed what I believe to be a bug in the sysconfig results
of python. In Tiger we now have a libpython2.3.dylib in /usr/lib
which didn't exist before. Xplor-nih used the sysconfig call of
python to find out the appropriate linker flags for linking in
python. In Tiger I get...
python -c 'from distutils.sysconfig import *; print get_config_var("LINKFORSHARE
D")'
-u __dummy -u _PyMac_Error -framework System Python.framework/Versions/2.3/Pytho
n -framework CoreServices -framework Foundation
...which results in a link error when using g++ that says the file
Python.framework/Versions/2.3/Python could not before found. I find
that if I manually edit out Python.framework/Versions/2.3/Python from
the link line and just use -lpython2.3 that g++ can link against
the python framework fine. In fact, examining the linked binary with
"otool -L" I see it is linked against...
/System/Library/Frameworks/Python.framework/Versions/2.3/Python (compatibility v
ersion 2.3.0, current version 2.3.5)
...rather than /usr/lib/libpython2.3.dylib... which actually is a tad
confusing. Has anyone else noticed this issue in Tiger?
Jack
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden