Unable to build libpython2.5.so on OS X 10.4

Piet van Oostrum piet at cs.uu.nl
Thu May 7 21:53:46 CEST 2009


>>>>> elwinter <elwinter at verizon.net> (e) wrote:

>e> Hi Ned. The Python module I am building is actually the Python module
>e> for ROOT, a large package from CERN. However, the problem arises
>e> before that code enters the picture, when I am building Python itself.
>e> All I want to do is create "libpython2.5.dylib", or its equivalent,
>e> and I can't seem to make that happen on Tiger.

The standard installer for Python 2.5.4 when installed on Tiger, will
contain a file libpython2.5.a which is a symbolic link to
/Library/Frameworks/Python.framework/Versions/2.5/Python, which
according to the file command, is a shared library. So it is not a
static library, despite of its name!
>e> Thanks,
>e> Eric

>e> On May 7, 12:41 pm, Ned Deily <n... at acm.org> wrote:
>>> In article
>>> <fde3b1d5-8a52-4ff1-9093-9ed470b4f... at g20g2000vba.googlegroups.com>,
>>>  Eric Winter <elwin... at verizon.net> wrote:
>>> 
>>> > Hi all. I'm trying to build some internal code that needs to link
>>> > against libpython2.5.so on a OS X 10.4 (Tiger) machine. It seems that
>>> > no matter what combination of options and environment variables I give
>>> > to the configure script from python 2.5.1, all I get is the
>>> > libpython2.5.a (the static library). I've googled the problem and
>>> > searched the comp.lang.python archives, but I have been unable to find
>>> > anything that works.
>>> 
>>> Perhaps I misunderstand, but if you are trying to build a C extension
>>> for an existing Python 2.5 installation, using Distutils from that
>>> installation should take care of everything for you.  Is there a
>>> setup.py file by any chance?  Are you using a standard python
>>> installation (i.e. python.org installer for instance)?  More details
>>> might help.
>>> 
>>> --
>>>  Ned Deily,
>>>  n... at acm.org


-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://pietvanoostrum.com [PGP 8DAE142BE17999C4]
Private email: piet at vanoostrum.org



More information about the Python-list mailing list