add build error handling for unix

This commit is contained in:
Ondrej Samohel 2021-02-25 16:12:55 +01:00
parent 28f08df239
commit 1fe00a3902
No known key found for this signature in database
GPG key ID: 02376E18990A97C6

View file

@ -133,7 +133,7 @@ main () {
echo -e "${BIGreen}>>>${RST} Cleaning cache files ..."
clean_pyc
echo -e "${BIGreen}>>>${RST} Building ..."
poetry run python3 "$pype_root/setup.py" build > "$pype_root/build/build.log"
poetry run python3 "$pype_root/setup.py" build > "$pype_root/build/build.log" || { echo -e "${BIRed}!!!${RST} Build failed, see the build log."; return; }
poetry run python3 "$pype_root/tools/build_dependencies.py"
echo -e "${BICyan}>>>${RST} All done. You will find Pype and build log in \c"