Commit 30add534 authored by incardon's avatar incardon

Changing installation of PETSC

parent b474473f
......@@ -231,6 +231,20 @@ if [ ! -d "$i_dir/PETSC" -o ! -d "$i_dir/EIGEN" ]; then
exit 1
fi
fi
if haveProg python2; then
python_command=python2
else
# we check that python is python2
py_ver=$(python --version 2>&1 | grep Python | sed 's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1/g')
if [ $py_ver -eq 3 ]; then
# we have to install python2
solve_python $platform
fi
python_command=python
fi
fi
#### License and Copyright disclamer
......
......@@ -28,18 +28,6 @@ else
python_command=python
fi
if haveProg python2; then
python_command=python2
else
# we check that python is python2
dgc_major=$(python --version 2>&1 | grep Python | sed 's/.*\([0-9][0-9]*\)\.\([0-9][0-9]*\)\.\([0-9][0-9]*\)/\1/g')
if [ $dgc_major -eq 3 ]; then
# we have to install python2
solve_python
fi
python_command=python
fi
##### if we are on osx we use gsed
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment