anchor.diff:  if errorlevel 1 exit 1
   
   REM Generate Arduino/Python code
  -"%PYTHON%" -m paver create_config
  +python -m paver create_config
   
   REM REM Build firmware
   pio run
  
positive.code: if errorlevel 1 exit 1
  
  REM Generate `setup.py` from `pavement.py` definition.
  "%PYTHON%" -m paver generate_setup
  if errorlevel 1 exit 1
  
  REM XXX **Workaround** `conda build` runs a copy of `setup.py` named
  
negative.code: REM XXX **Workaround** Run `scons` in subprocess, since otherwise it causes the
  REM build script to exit early, preventing installation of the Python package
  REM (not sure why this happens...).
  python -c "import subprocess as sp; sp.check_call('scons', shell=True)"
  if errorlevel 1 exit 1
  
  REM Install source directory as Python package.
  echo "Install source directory as Python package."
  python setup.py install --single-version-externally-managed --record record.txt
  if errorlevel 1 exit 1
  