Support systems which don't have a "python" command. (#386)

Add support for finding an appropriate python command on systems which
don't have "python". Try "python3" and "python2.7".

Fixed #381.
This commit is contained in:
Dan Gohman
2018-07-02 13:02:00 -07:00
committed by GitHub
parent 1074e2c755
commit 276ba8b97d
3 changed files with 19 additions and 4 deletions

View File

@@ -46,7 +46,7 @@ else
needcheck=yes
fi
if [ -n "$needcheck" ]; then
banner "$(python --version 2>&1), $(python3 --version 2>&1)"
banner "Checking python source files"
"$topdir/lib/codegen/meta/check.sh"
touch "$tsfile" || echo no target directory
fi