md build_easdif
cd build_easdif
:: python.exe3 does not exist on windows (neither does python3.exe)
cmake ../EASDIF_SDIF -DCMAKE_BUILD_TYPE=release  -DPYTHON:PATH=%PYTHON% -DEASDIF_DO_PYTHON:bool=on
:: sometimes this needs to be run twice for proper confguration. Better run it twice always
cmake ../EASDIF_SDIF -DCMAKE_BUILD_TYPE=release  -DPYTHON:PATH=%PYTHON% -DEASDIF_DO_PYTHON:bool=on

cmake --build . --config Release --target pythonswig
cmake --build . --config Release --target prepare_conda_easdif

"%PYTHON%" -m pip install swig/python/conda_dir
if errorlevel 1 exit 1

:: Add more build steps here, if they are necessary.

:: See
:: http://docs.continuum.io/conda/build.html
:: for a list of environment variables that are set during the build process.
