Check if we get any error while building the egg file

This commit is contained in:
iFuSiiOnzZ 2018-08-20 11:26:09 +02:00
parent 7b413e17e3
commit 402f3430ed
1 changed files with 6 additions and 0 deletions

View File

@ -102,6 +102,7 @@ rem
if %BUILD_FOR_PYTHON3%==true (
echo Building Python API for Python 3.
call py -3 setup.py bdist_egg
if %errorlevel% neq 0 goto error_build_egg
)
goto success
@ -133,6 +134,11 @@ rem ============================================================================
echo %FILE_N% - Make sure it is available on your Windows "py".
goto bad_exit
:error_build_egg
echo.
echo %FILE_N% An error occurred while building the egg file.
goto bad_exit
:good_exit
endlocal
exit /b 0