#! /bin/bash


echo $CONDA_NPY
mkdir -p build_easdif
cd build_easdif
cmake ../EASDIF_SDIF -DCMAKE_BUILD_TYPE=release  -DPYTHON:PATH=${PYTHON}3 -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}3 -DEASDIF_DO_PYTHON:bool=on

make pythonswig -j3
make prepare_conda_easdif

which pip
${PYTHON} -m pip install swig/python/conda_dir/

#cd ..
#rm -f *~
#rm -rf EASDIF_SDIF
#rm -rf build_easdif
