[Pythonmac-SIG] libpython for 2.4.1 on OSX 10.3

Bob Ippolito bob at redivi.com
Wed Aug 17 02:53:24 CEST 2005


On Aug 16, 2005, at 12:36 PM, Eli Stevens (WG.c) wrote:

> Bob Ippolito wrote:
>
>> On Aug 16, 2005, at 9:36 AM, Eli Stevens (WG.c) wrote:
>>
>>> I'm trying to get Inline::Python (allows python to be called from  
>>> perl
>>> with very little glue) working on OSX 10.3.  I have installed the
>>> framework build of 2.4.1 and am able to use it, run scripts, etc.
>>>
>> Sounds like their build scripts are broken.  The correct way to   
>> determine how to link to Python is to ask Python (via distutils,  
>> or  read its Makefile directly).  You should talk to them about  
>> this  problem.
>>
>
> Thanks for the quick response.  :)
>
> I'll see what trouble I can stir up on that side of the fence and  
> will report back.  :)
>
>
>
>> However, the quick & dirty workaround would to be to do something   
>> like this:
>> sudo ln -s /Library/Frameworks/Python.framework/Versions/2.4/ 
>> include/ python2.4 /usr/local/include/python2.4
>> sudo ln -s /Library/Frameworks/Python.framework/Versions/2.4/ 
>> Python / usr/local/lib/libpython2.4.dylib
>> It should be able to use -lpython2.4 at that point, and might  
>> even  find the include files where it expects to find them.
>>
>
> Previously, I had tried giving the real filenames to the inline  
> install, and it didn't work.  After creating the symlinks, the  
> behavior remained unchanged (including a make clean; make; make  
> install of Inline::Python).  :/  As far as I know, I used the  
> standard MacPython package to install[1], and I don't believe that  
> I chose anything but standard/default options.  Are there other  
> libraries that need to be pulled in along with libpython?  Some - 
> lfoo I need to specify?

Nope, that's it.

> I feel like I'm missing something obvious, but I'm a relative OSX  
> newbie, and am not really familiar with the spin OSX puts on things  
> targeted for Linux (not that I'm a Linux guru either).

Well, the obvious thing is that Inline::Python's build process is  
broken :)

-bob



More information about the Pythonmac-SIG mailing list