More notes on this.

(1)

--disable-toolbox-glue did not help:

./configure --prefix=/Users/gary/opt/py25 LDFLAGS=-L/opt/local/lib OPT=-I/opt/local/include --disable-toolbox-glue

(...this then led to the same problem I reported before, eventually).

(2)

Looking at the ``make install`` output, it seems the .so files went into ~/Library/Python/2.5/site-packages, rather than where I had requested:

copying build/lib.macosx-10.3-i386-2.5/cmath.so -> /Users/gary/Library/ Python/2.5/site-packages

This seems like the best clue, but I wasn't able to take it anywhere myself.

(3)

I decided to doublecheck my PYTHONHOME and PYTHONPATH environment variables

imposter:Python-2.5.2 gary$ echo $PYTHONHOME

imposter:Python-2.5.2 gary$ echo $PYTHONPATH

I then did a quick glance at ``env``: nothing seemed amiss.

Will look more as I have time.

Gary

On Apr 24, 2008, at 8:40 AM, Gary Poster wrote:
Hi.  I'm assuming this is a python-on-mac oddity, but maybe I'm wrong.

I wanted a local non-framework build of Python 2.5.2. I did the following in a Python 2.5.2 source download:

./configure --prefix=/Users/gary/opt/py25 LDFLAGS=-L/opt/local/lib OPT=-I/opt/local/include
make
make install

(The LDFLAGS and OPT are there to get readline and zlib from Darwin Ports in the Python.)

I got some warnings about expat, but nothing serious during configure and make.

But oddly, /Users/gary/opt/py25/library/python2.5/lib-dynload was completely empty. So, for instance, I couldn't do basic things like ``import math``.

I then did make test. A few unrelated things failed--expat related, for instance--but most tests passed, including math tests. In fact, the .so files were in the build directory.

I then did the following:

ln build/lib.macosx-10.3-i386-2.5/*.so ~/opt/py25/lib/python2.5/lib- dynload/

Now everything seems to work. :-D :-/

Anybody know if I did something wrong? Or is this a bug in the Python 2.5 build? I couldn't find a similar report with Google, but maybe I wasn't looking in the right metaphorical corner.

Gary
_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

_______________________________________________
Pythonmac-SIG maillist  -  Pythonmac-SIG@python.org
http://mail.python.org/mailman/listinfo/pythonmac-sig

Reply via email to