Bug with slowaris 8 Python-2.2.1 sys.executable?

Robin Becker robin at jessikat.fsnet.co.uk
Thu Aug 29 13:47:52 EDT 2002


I'm trying to build a private copy of Python-2.2 on solaris 8 (using the
SourceForge compile farm).

I configure with 
./configure --prefix=$HOME/python22

and after adding some libs ['nsl', 'socket', 'dl'] for the _socket build
and turning off the SSL attempt I obtain a working python which I
installed and linked to $HOME/bin/python

my path shows that python as first on the list, but I get different
results for sys.executable when I run python or $HOME/bin/python even
though the running program seems to be the same. Anyone got any
knowledge of what's going on. When I just get the python off the path
sys.executable seems to be the system python (which is actually 1.5.2).

bash-2.03$ $HOME/bin/python
Python 2.2.1 (#1, Aug 29 2002, 09:41:59)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.executable
'/home/users/r/rg/rgbecker/bin/python'
>>> sys.prefix
'/home/users/r/rg/rgbecker/python22'
>>>
>>> ^D
bash-2.03$ which python
/home/users/r/rg/rgbecker/bin/python
bash-2.03$ python
Python 2.2.1 (#1, Aug 29 2002, 09:41:59)
[GCC 2.95.2 19991024 (release)] on sunos5
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.executable
'/opt/sfw/bin/python'        !!!!!! weirds here this is actually 1.5.2
>>> sys.prefix
'/home/users/r/rg/rgbecker/python22'
>>>
-- 
Robin Becker



More information about the Python-list mailing list