Fix Python 3 invocation during build on Windows

This commit is contained in:
Babil Golam Sarwar 2018-05-16 02:22:24 +10:00 committed by Oliver Blanthorn
parent 01d103a6ab
commit de39d704a5
No known key found for this signature in database
GPG key ID: 2BB8C36BB504BFF3

View file

@ -14,6 +14,7 @@ isWindowsMinGW() {
}
if [ "$(isWindowsMinGW)" == "True" ]; then
WIN_PYTHON="py -3"
NPM_BIN_DIR="$(cygpath $(npm bin))"
PATH=$NPM_BIN_DIR:$PATH
else
@ -27,7 +28,11 @@ mkdir -p build/static
mkdir -p generated/static
mkdir -p generated/static/clippy
scripts/excmds_macros.py
if [ "$(isWindowsMinGW)" == "True" ]; then
$WIN_PYTHON -3 scripts/excmds_macros.py
else
python3 scripts/excmds_macros.py
fi
scripts/newtab.md.sh
scripts/make_tutorial.sh
scripts/make_docs.sh &