Hello Eric and others. I was just about to try out CML2 with the 
2.4.15-pre5 kernel, and I ran up against a small problem.
It seems the install-cml2 script looks for the python 
interpreter under the names 'python' and 'python2'. However,
under the new python-subpolicy for Debian unstable, the binary
appears under the name python + PYTHONRELEASE. This becomes 
a problem because I have python1.5 (the default binary) and 
python2.2, and /usr/bin/python (according to debian policy)
points to python1.5, the last installed version. It might 
help if you applied the attached patch, which makes install-cml2
look for python under the names 'python2.2', 'python2.1', 
'python2', and 'python' in that order.

TIA
-Scott Fenton

-- 
GPG public key fingerprint:  B6B9 9F98 848B 540D 419D  5487 6B6B 5DB9 B5A5 25FA

-----BEGIN GEEK CODE BLOCK-----
Version: 3.12
GCS d>- s: a14 C++>++++ UL++++>$ P++(++++) L+++>++++ 
E>++ W++(--) N !o K w--- !O M+(--) !V PS++(+++) PE 
Y+>++ PGP+@ t- 5- !X R- tv+>! b>+++ DI++++ !D G 
e->++++ h! r y-
------END GEEK CODE BLOCK------
22,37c22,31
< try=`python -c "import sys; print sys.version[0]" 2>/dev/null`
< if [ $? = 0 -a "$try" = 2 ]
< then
<     echo "Good.  You have Python 2.x installed as 'python' already."
<     python=python
< else
<     try=`python2 -c "import sys; print sys.version[0]" 2>/dev/null`
<     if [ $? = 0 -a "$try" = 2 ]
<     then
<       echo "Good.  You have Python 2.x installed as 'python2'."
<       python=python2
<     else
<       echo "You need to install Python 2.0.  See http://www.python.org.";
<       exit 1
<     fi
< fi
---
> for ver in 2.2 2.1 2 ""
>   do
>   try=`python$ver -c "import sys; print sys.version[0]" 2>/dev/null`
>   if [ $? = 0 -a "$try" = 2 ]
>       then
>       echo "Good.  You have Python 2.x installed as 'python$ver' already."
>       python=python$ver
>       break
>   fi
> done

Attachment: msg00585/pgp00000.pgp
Description: PGP signature

Reply via email to