"%PYTHON%" setup.py install
"%PYTHON%" setup.py test
if errorlevel 1 exit 1

"%PYTHON%" setup.py install
"%PYTHON%" -m pip install -vv .
if errorlevel 1 exit 1

Replace "setup.py test" to "-m pip install -vv ."
Replace "setup.py test" to "-m pip install -vv ."