Skip to content
Snippets Groups Projects
Commit 78cdd507 authored by Pietro Incardona's avatar Pietro Incardona
Browse files

Fixing python installation

parent 22bf01d4
No related merge requests found
Pipeline #2167 passed
......@@ -232,21 +232,6 @@ if [ ! -d "$i_dir/PETSC" -o ! -f "$i_dir/PETSC/include/petsc.h" -o ! -d "$i_dir/
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
echo -e "\033[1mPETSC require python2 installed, searching a solution to install python2 ... \033[0m"
solve_python $platform
fi
python_command=python
fi
fi
#### License and Copyright disclamer
......
......@@ -12,8 +12,8 @@ fi
if [ x"$1" = x"linux" ]; then
pc_install_command "$pcman"
commands[0]="su -c \"$pc_install_command_ret python2\""
commands[1]="sudo $pc_install_command_ret python2"
commands[0]="su -c \"$pc_install_command_ret python\""
commands[1]="sudo $pc_install_command_ret python"
possible_solutions "${commands[@]}"
fi
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment