1.5.1 on IRIX

rceci at my-deja.com rceci at my-deja.com
Fri Jul 2 02:27:07 EDT 1999


Andrew,

Took your suggestions - moved the libs back under a python1.5 subdir,
and set PYTHONHOME.  Here is my results (this the output of my csh
script running the relocated python runtime ):

PYTHONPATH=/usr/mdi_dev//python/lib/irix32/python1.5
PYTHONHOME=/usr/mdi_dev//python/lib/irix32
python=/usr/mdi_dev//python/bin/irix32/python
Could not find platform independent libraries <prefix>
Could not find platform dependent libraries <exec_prefix>
Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
# /usr/mdi_dev//python/lib/irix32/python1.5/exceptions.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/exceptions.py
import exceptions # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/exceptions.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/site.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/site.py
import site # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/site.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/os.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/os.py
import os # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/os.pyc
import posix # builtin
# /usr/mdi_dev//python/lib/irix32/python1.5/posixpath.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/posixpath.py
import posixpath # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/posixpath.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/stat.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/stat.py
import stat # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/stat.pyc
# /usr/mdi_dev//python/lib/irix32/python1.5/UserDict.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/UserDict.py
import UserDict # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/UserDict.pyc
Python 1.5.1 (#3, May 21 1999, 16:24:24) [C] on irix646-32-mips2
Copyright 1991-1995 Stichting Mathematisch Centrum, Amsterdam
# /usr/mdi_dev//python/lib/irix32/python1.5/string.pyc matches
/usr/mdi_dev//python/lib/irix32/python1.5/string.py
import string # precompiled from
/usr/mdi_dev//python/lib/irix32/python1.5/string.pyc
import strop # builtin
>>>

I have a PYTHONSTARTUP that simply imports os,sys,string.

It looks like python is loading all of its modules from the correct
place (*/usr/mdi_dev/python"), as opposed to where the interpreter was
told during buildtime ("/usr/local").

I am wondering - on this second machine that is causing the warnings to
be printed out, there is no python installation in /usr/local.  Does
python check its configured buildtime prefix/exec_prefix locations, EVEN
though PYTHONHOME and PYTHONPATH are setup so python is instructed to
get its runtimes from the new location?  That would be a bummer, because
we are
distributing binaries to our customers, and need to put the distro in
any arbitrary customer-specified location, and having these warnings pop
up would probably cause a lot of confusion.

Thanks

Rob




Sent via Deja.com http://www.deja.com/
Share what you know. Learn what you don't.




More information about the Python-list mailing list