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

Fixing python

parent 78cdd507
No related branches found
No related tags found
No related merge requests found
Pipeline #2168 passed
......@@ -10,10 +10,25 @@ if [ x"$pcman" = x"" ]; then
exit 1
fi
if [ x"$pcman" == x"apt" ]; then
apt-cache show python-is-python3 | grep -q "python-is-python3"
if [ $? -eq 0 ]; then
additional_python_pkg="python-is-python3"
fi
apt-cache show python | grep -q "python"
if [ $? -eq 0 ]; then
base_python_pkg="python"
fi
apt-cache show python2 | grep -q "python2"
if [ $? -eq 0 ]; then
base_python_pkg="python2 $base_python_pkg"
fi
fi
if [ x"$1" = x"linux" ]; then
pc_install_command "$pcman"
commands[0]="su -c \"$pc_install_command_ret python\""
commands[1]="sudo $pc_install_command_ret python"
commands[0]="su -c \"$pc_install_command_ret $base_python_pkg $additional_python_pkg\""
commands[1]="sudo $pc_install_command_ret $base_python_pkg $additional_python_pkg"
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