-
Notifications
You must be signed in to change notification settings - Fork 14
/
MetaPathwaysrc
executable file
·43 lines (39 loc) · 1.21 KB
/
MetaPathwaysrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/bin/bash
echo "Checking for Python and Perl:"
PYTHON_LOC=`which python`
if [ ! -e $PYTHON_LOC ]
then
echo "ERROR:"
echo "You do not seem to have Python installed."
echo "Please install it or make sure it is added to your unix PATH variable."
else
echo "Python found in ${PYTHON_LOC}"
echo "Please set variable PYTHON_EXECUTABLE in file template_config.txt as:"
echo "PYTHON_EXECUTABLE ${PYTHON_LOC}"
fi
echo ""
PERL_LOC=`which perl`
if [ ! -e $PERL_LOC ]
then
echo "ERROR:"
echo "You do not seem to have Perl installed."
echo "Please install it or make sure it is added to your unix PATH variable."
else
echo "Perl found in ${PERL_LOC}"
echo "Please set variable PERL_EXECUTABLE in file template_config.txt as:"
echo "PERL_EXECUTABLE ${PERL_LOC}"
fi
echo ""
echo "Adding installation folder of MetaPathways to PYTHONPATH"
echo "Your MetaPathways is installed in :"
echo "Please set variable METAPATHWAYS_PATH in file template_config.txt as:"
CURRDIR=`pwd`
cd `dirname ${BASH_SOURCE[0]}`
METAPATH=`pwd`
METAPATHLIB=${METAPATH}:$METAPATH/libs
PYTHONPATH=${METAPATHLIB}:$PYTHONPATH
echo PYTHONPATH " : "${PYTHONPATH}
cd $CURRDIR
export PYTHONPATH
echo "METAPATHWAYS_PATH "${METAPATH}
echo ""