/[escript]/trunk/scripts/finley_wrapper_template
ViewVC logotype

Diff of /trunk/scripts/finley_wrapper_template

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2296 by jfenwick, Thu Mar 5 05:47:34 2009 UTC revision 2297 by jfenwick, Fri Mar 6 04:46:14 2009 UTC
# Line 3  Line 3 
3  # Escript/Finley wrapper for python  # Escript/Finley wrapper for python
4  # Sets LD_LIBRARY_PATH and PYTHONPATH and then runs either python or the MPI launcher  # Sets LD_LIBRARY_PATH and PYTHONPATH and then runs either python or the MPI launcher
5    
6    
7    EXTRAPATH=""
8    EXTRALDLIBRARYPATH=""
9    EXTRADYLDLIBRARYPATH=""
10    EXTRAPYTHONPATH=""
11    
12    #@@SET_ADDITIONAL_REQUIRED_VARS_HERE@@
13    
14    
15  HELP_TEXT="  HELP_TEXT="
16  Usage: escript [options] script.py [arguments...]  Usage: escript [options] script.py [arguments...]
17      -O N        Use N OpenMP threads (OMP_NUM_THREADS=N)      -O N        Use N OpenMP threads (OMP_NUM_THREADS=N)
# Line 43  else Line 52  else
52      scriptdir=`dirname $tscriptdir`      scriptdir=`dirname $tscriptdir`
53  fi  fi
54    
55  cd $scriptname/..  cd $scriptdir/..
56  ESCRIPT_ROOT=`pwd`  ESCRIPT_ROOT=`pwd`
57  cd $CURDIR  cd $CURDIR
58    
59  PYTHON_CMD="@@PYTHON_CMD@@"  # PYTHON_CMD="@@PYTHON_CMD@@"
60    # For stand-alone builds this will need to be changed
61    PYTHON_CMD=python
62    
63    # Check to see if the python version we were compiled with matches the one of PYTHON_CMD
64    if [ -f $ESCRIPT_ROOT/lib/pyversion ]
65    then
66       compversion=`cat $ESCRIPT_ROOT/lib/pyversion`
67       intversion=`python --version 2>&1`
68       if [ "$compversion" != "$intversion" ]
69       then
70          echo "Python versions do not match. Escript was compiled for "$compversion"."
71          echo "Current version of Python appears to be "$intversion"."
72          exit 1
73       fi
74    fi
75    
76  #ESCRIPT_ROOT="@@ESCRIPT_ROOT@@"  #ESCRIPT_ROOT="@@ESCRIPT_ROOT@@"
77    

Legend:
Removed from v.2296  
changed lines
  Added in v.2297

  ViewVC Help
Powered by ViewVC 1.1.26