473,320 Members | 1,951 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 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 920

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Dave Harrison | last post by:
Ok before I start, please dont mail me telling me to use a more recent version of Python, I _would_ use 2.2.x but due to an existing framework all based on using 2.1.1 I have been specifically told...
2
by: Chris Hodapp | last post by:
I have seen messages posted about this before, and there is a clear reference to it in the manual, but I have been unable to find a solution. I'm on Slackware 9.1, kernel 2.6.0-test11, using...
2
by: Tero Pihlajakoski | last post by:
I'm trying to run some python scripts from a proggy of mine. Most of the time it works great, but I seem to be having problems with some modules. Here's what I get when I try importing math...
1
by: Andreas Jung | last post by:
I am trying to embed Python within a C++ application (Linux, Python2.3.4). I am using the example from the example from the "Embeding and Extending" docs. This works fine importing a simple module...
1
by: Matej Kenda | last post by:
Hi all, This message is to let you know that I have successfully compiled the latest sources from the 2.3 branch on the abovementioned OS using the HP ansiC compiler version 5.50. Final...
3
by: Belyh G.P. | last post by:
While I try to install python arise an error: I type ./configure .... .... checking for g++ ... no checking for gcc ... gcc checking for C++ compiler default output file name ... configure:...
1
by: Grzegorz Dostatni | last post by:
Cheers. I am trying to create a single executable that contains my program. Due to legal issues I was unable to use a dynamically linked python executable. Over the last couple of weeks I...
4
by: Layne Meier | last post by:
I'm having a bit of a problem trying to install Python on a Solaris 10 system. I didn't have this kind of problem when trying to install it on Solaris 8. Has anyone else experienced this...
7
by: rwr | last post by:
As a newbie I am having problems/errors configuring Python after unpacking the Python archive: # ./configure checking MACHDEP... linux2 checking EXTRAPLATDIR... checking for --without-gcc......
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.