anchor.diff:  set PATH=%INSTALL_DIR%\bin;%PATH%
   
   @rem Build and test Arrow C++ libraries
  -mkdir cpp\build
  -pushd cpp\build
  +mkdir %ARROW_SOURCE%\cpp\build
  +pushd %ARROW_SOURCE%\cpp\build
  +
  +@rem This is the path for Visual Studio Community 2017
  +call "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\Tools\VsDevCmd.bat" -arch=amd64
   
   cmake -G "%GENERATOR%" ^
         -DCMAKE_INSTALL_PREFIX=%ARROW_HOME% ^
         -DARROW_BOOST_USE_SHARED=OFF ^
         -DCMAKE_BUILD_TYPE=%CONFIGURATION% ^
  -      -DARROW_CXXFLAGS="/WX /MP" ^
  +      -DARROW_CXXFLAGS="/MP" ^
         -DARROW_PYTHON=ON ^
         ..  || exit /B
   cmake --build . --target INSTALL --config %CONFIGURATION%  || exit /B
  
positive.code: 
  @rem Build parquet-cpp
  git clone https://github.com/apache/parquet-cpp.git || exit /B
  mkdir parquet-cpp\build
  pushd parquet-cpp\build
  
  cmake -G "%GENERATOR%" ^
       -DCMAKE_INSTALL_PREFIX=%PARQUET_HOME% ^
       -DCMAKE_BUILD_TYPE=%CONFIGURATION% ^
       -DPARQUET_BOOST_USE_SHARED=OFF ^
       -DPARQUET_BUILD_TESTS=off .. || exit /B
  cmake --build . --target INSTALL --config %CONFIGURATION% || exit /B
  popd
  
negative.code: @rem Build and import pyarrow
  @rem parquet-cpp has some additional runtime dependencies that we need to figure out
  @rem see PARQUET-1018
  pushd %ARROW_SOURCE%\python
  
  python setup.py build_ext --inplace --with-parquet --bundle-arrow-cpp bdist_wheel  || exit /B
  py.test pyarrow -v -s --parquet || exit /B
  
  popd
  
  call deactivate
  