[Pythonmac-SIG] non-framework Python 2.5.2 has empty lib-dynload
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
Re: [Pythonmac-SIG] non-framework Python 2.5.2 has empty lib-dynload
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
Re: [Pythonmac-SIG] non-framework Python 2.5.2 has empty lib-dynload
On 24 Apr, 2008, at 14:40, Gary Poster wrote: Hi. I'm assuming this is a python-on-mac oddity, but maybe I'm wrong. There's probably something wrong with your environment, although I don't know what that could be, as you've already excluded the most likely problems in your next message. Do you by any chance have a .pydistutils.cfg file in your home directory? I regularly use non-framework installs when testing and those work fine. Ronald smime.p7s Description: S/MIME cryptographic signature ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] non-framework Python 2.5.2 has empty lib-dynload
On Apr 24, 2008, at 10:56 AM, Ronald Oussoren wrote: On 24 Apr, 2008, at 14:40, Gary Poster wrote: Hi. I'm assuming this is a python-on-mac oddity, but maybe I'm wrong. There's probably something wrong with your environment, although I don't know what that could be, as you've already excluded the most likely problems in your next message. Do you by any chance have a .pydistutils.cfg file in your home directory? Ah-ha! I had a feeling it was something like that but I hadn't connected the dots yet. Yes, thank you very much! For reference, these are the offending lines in my .pydistutils.cfg: [install] install_lib = ~/Library/Python/$py_version_short/site-packages install_scripts = ~/bin install_lib is apparently honored during this installation, and install_scripts is not. I have these because I want to use easy install for system Python-ish things but don't want to pollute my system Python with whatever I experiment with or easy_install pulls along. If anyone knows a command-line way to temporarily disable this setting while building a package, that would be cool! But for now, I've just moved it aside. Thanks again. Gary ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] non-framework Python 2.5.2 has empty lib-dynload
Gary ./configure --prefix=/Users/gary/opt/py25 LDFLAGS=-L/opt/local/lib Gary OPT=-I/opt/local/include Gary make Gary make install Gary (The LDFLAGS and OPT are there to get readline and zlib from Darwin Gary Ports in the Python.) Gary I got some warnings about expat, but nothing serious during configure Gary and make. Gary But oddly, /Users/gary/opt/py25/library/python2.5/lib-dynload was Gary completely empty. So, for instance, I couldn't do basic things Gary like ``import math``. Works for me. I build a number of different versions on my Mac quite frequently. Just to make sure I wasn't fooling myself, I svn up'd my 2.5 branch, then reran configure make clean make -j2 make altinstall and then checked the lib-dynload timestamps. They looked fine. You can try running make -n altinstall and looking at the end of the output. You should see something like this: for i in X ; do \ if test $i != X; then \ echo /usr/bin/install -c -m 555 $i /Users/skip/local/lib/python2.5/lib-dynload/`basename $i`; \ /usr/bin/install -c -m 555 $i /Users/skip/local/lib/python2.5/lib-dynload/`basename $i`; \ fi; \ done That install command is what populates your lib-dynloads directory. Skip ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] non-framework Python 2.5.2 has empty lib-dynload
[EMAIL PROTECTED] wrote: make altinstall maybe that's it -- I think the OP was running install rather than altinstall. What is altinstall supposed to do differently? -CHB -- Christopher Barker, Ph.D. Oceanographer Emergency Response Division NOAA/NOS/ORR(206) 526-6959 voice 7600 Sand Point Way NE (206) 526-6329 fax Seattle, WA 98115 (206) 526-6317 main reception [EMAIL PROTECTED] ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig
Re: [Pythonmac-SIG] non-framework Python 2.5.2 has empty lib-dynload
CHB [EMAIL PROTECTED] wrote: make altinstall CHB maybe that's it -- I think the OP was running install rather than CHB altinstall. What is altinstall supposed to do differently? Nah... The install target depends on the altinstall target. All it does beyond that is create a symlink called python and install the Python man page. Skip ___ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig