[qmtest] qmtest for linux

Diana Bosio Diana.Bosio at cern.ch
Tue Jun 1 09:09:25 UTC 2004


So, basically, you are telling me that I cannot install from rpm because 
my python 2.2 is in /usr/bin/python2.2 rather than /usr/bin/python and I 
have no way of setting the path at run time; am I correct?

Thanks,
Diana

Mark Mitchell wrote:
> 
>> 1. rpm installation tells me that I have the wrong version of python 
>> and tells me to set the QM_PYTHON variable. I set it and it still 
>> tells me to set that variable. I use tcsh, maybe it is this that 
>> causes it?
> 
> 
> That's a misleading message; QMTest no longer uses that environment 
> variable.  Thanks for pointing out this issue; this patch removes the 
> message.
> 
> Thanks for the feedback!
> 
> 
> ------------------------------------------------------------------------
> 
> 2004-05-28  Mark Mitchell  <mark at codesourcery.com>
> 
> 	* qm/test/qmtest (check_python_version): Clarify error message.
> 
> Index: qm/test/qmtest
> ===================================================================
> RCS file: /home/qm/Repository/qm/qm/test/qmtest,v
> retrieving revision 1.4.2.2
> diff -c -5 -p -r1.4.2.2 qmtest
> *** qm/test/qmtest	27 May 2004 19:02:06 -0000	1.4.2.2
> --- qm/test/qmtest	28 May 2004 19:23:56 -0000
> *************** def check_python_version():
> *** 48,61 ****
>       if old:
>           if len(required_python_version) == 2:
>               version = "%d.%d" % required_python_version
>           else:
>               version = "%d.%d.%d" % required_python_version
> !         sys.stderr.write(
> !             ("QMTest requires Python %s or later.\n"
> !              "Set the QM_PYTHON environment variable to an appropriate "
> !              "Python interpreter.\n") % version)
>           sys.exit(1)
>   
>   check_python_version()
>   
>   ########################################################################
> --- 48,59 ----
>       if old:
>           if len(required_python_version) == 2:
>               version = "%d.%d" % required_python_version
>           else:
>               version = "%d.%d.%d" % required_python_version
> !         sys.stderr.write("qmtest: error: QMTest requires Python %s or later.\n"
> !                          % version)
>           sys.exit(1)
>   
>   check_python_version()
>   
>   ########################################################################


-- 
CERN, European Organization for Nuclear Research
IT Department, Grid Middleware
Geneva 23, CH-1211, Switzerland
Tel: ++ 41 22 767 0638	Fax: ++ 41 22 767 7155





More information about the qmtest mailing list