[ET Trac] [Einstein Toolkit] #2058: Simfactory assumes python is python2

Einstein Toolkit trac-noreply at einsteintoolkit.org
Mon Aug 7 09:11:45 CDT 2017


#2058: Simfactory assumes python is python2
-------------------------+--------------------------------------------------
  Reporter:  sbrandt     |       Owner:                     
      Type:  defect      |      Status:  new                
  Priority:  unset       |   Milestone:                     
 Component:  SimFactory  |     Version:  development version
Resolution:              |    Keywords:  newuser            
-------------------------+--------------------------------------------------

Comment (by sbrandt):

 OK, then. Version 2.3 corresponds to 0x2030000.

 {{{
 # Forward the call
 for PYEXE in python2 python
 do
     $PYEXE - > /dev/null 2>&1 << EOF
 import sys
 if sys.hexversion >= 0x2030000 and sys.hexversion < 0x3000000:
     exit(0)
 else:
     exit(1)
 EOF
     if [ $? = 0 ]
     then
         exec $PYEXE "$cmd" "$@"
         exit 1
     fi
 done
 exit 2
 }}}

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/2058#comment:8>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list