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

2009-05-07 Thread elwinter
Christian,

Thanks for the response. I knew about the .dylib suffix, but that's
not being built either, even when I supply the --enable-shared option
to configure. I also tried the --enable-unicode configure option, but
no joy. Might there be some additional OS X package I need to install
to get this to work?

Thanks,
Eric

On May 7, 11:45 am, Christian Heimes  wrote:
> Eric Winter schrieb:
>
> > 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.
>
> > Is there some special magic I have to invoke to do this? I've not done
> > any Mac development, so there may be some obvious point I am missing.
> > The Python README file and configure script comments are not getting
> > me very far.
>
> You have to start with a clean plate and use the --enable-shared option
> to configure:
>
> make distclean
> ./configure --enable-unicode=ucs4 --enable-shared
> make
>
> That will give you a libpython2.5.dylib. The suffix for shared libraries
> is .dylib on On Mac OS X, not .so!
>
> Christian

--
http://mail.python.org/mailman/listinfo/python-list


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

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

Thanks,
Eric

On May 7, 12:41 pm, Ned Deily  wrote:
> In article
> ,
>  Eric Winter  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,
>  [email protected]

--
http://mail.python.org/mailman/listinfo/python-list