Skip to content

Commit

Permalink
install-fedora and install-suse: use /usr/bin/python3
Browse files Browse the repository at this point in the history
  • Loading branch information
ilius committed Oct 8, 2021
1 parent 88db627 commit 760efd5
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 21 deletions.
13 changes: 3 additions & 10 deletions install-fedora
Original file line number Diff line number Diff line change
Expand Up @@ -19,18 +19,11 @@ if ! git --version ; then
fi


pyCmd=
for minor in 9 8 7 6 5 ; do
cmd="/usr/bin/python3.$minor"
if [ -f "$cmd" ] ; then
pyCmd="$cmd"
break
fi
done
if [ -z "$pyCmd" ] ; then
echo "Please install python3.9 and try again (or older down to python3.5)" >&2
if [ ! -f /usr/bin/python3 ] ; then
echo "/usr/bin/python3 was not found" >&2
exit 1
fi
pyCmd=/usr/bin/python3
echo "Using python: \"$pyCmd\""
pyPkg="$pyCmd"

Expand Down
14 changes: 3 additions & 11 deletions install-suse
Original file line number Diff line number Diff line change
Expand Up @@ -29,19 +29,11 @@ if ! git --version ; then
fi



pyCmd=
for minor in 8 7 6 5 ; do
cmd="/usr/bin/python3.$minor"
if [ -f "$cmd" ] ; then
pyCmd="$cmd"
break
fi
done
if [ -z "$pyCmd" ] ; then
echo "Please install python3.8 and try again (or older down to python3.5)" >&2
if [ ! -f /usr/bin/python3 ] ; then
echo "/usr/bin/python3 was not found" >&2
exit 1
fi
pyCmd=/usr/bin/python3
echo "Using python: \"$pyCmd\""
pyPkg="$pyCmd"
## --provides and --file-list both work
Expand Down

0 comments on commit 760efd5

Please sign in to comment.