471,092 Members | 1,390 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,092 software developers and data experts.

LINKFORSHARED problem on Mac OS 10.4

[I sent this to pythonmac-sig but never got a reply, so hopefully there are
more Mac Python gurus here.]

I recently added Python scripting to our app (an open source, cross-platform
Life app called Golly; see http://golly.sourceforge.net/ if you're interested).

Based on what I read at http://pythonmac.org/wiki/FAQ, our makefile uses
these variables when compiling and linking:

PYTHON_INCLUDE = -I`python -c "import distutils.sysconfig; print
distutils.sysconfig.get_python_inc()"`
PYTHON_LINK = `python -c "import distutils.sysconfig; print
distutils.sysconfig.get_config_var('LINKFORSHARED' )"`

This works fine on OS 10.3.9, but on an Intel Mac running OS 10.4.5 the link
step fails because PYTHON_LINK is set to this:

-u __dummy -u _PyMac_Error -framework System
Python.framework/Versions/2.3/Python -framework CoreServices -framework
Foundation

Does anybody know why it contains "Python.framework/Versions/2.3/Python" rather
than "-framework Python"?

I can fix the problem by explicitly using

PYTHON_LINK = -u __dummy -u _PyMac_Error -framework System -framework
Python -framework CoreServices -framework Foundation

but presumably that's not a good long-term solution.

This is my first project using gcc, makefiles, frameworks, Python, etc,
so I'm still somewhat foggy about lots of things. Any advice would be
much appreciated!

Andrew
Apr 6 '06 #1
0 837

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Dave Harrison | last post: by
2 posts views Thread by Tero Pihlajakoski | last post: by
1 post views Thread by Matej Kenda | last post: by
3 posts views Thread by Belyh G.P. | last post: by
1 post views Thread by Grzegorz Dostatni | last post: by
4 posts views Thread by Layne Meier | last post: by
7 posts views Thread by rwr | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.