

set -ex



export PYLIB_EXT=`$PYTHON -c 'import sysconfig as s; print(s.get_config_var("EXT_SUFFIX"))'`
test -f $PREFIX/bin/psi4
test -f $SP_DIR/psi4/core$PYLIB_EXT
$PREFIX/bin/psi4 --version
ldd -r -u $SP_DIR/psi4/core$PYLIB_EXT
ldd -v $SP_DIR/psi4/core$PYLIB_EXT
conda inspect linkages --show-files --groupby=dependency ambit chemps2 dkh libecpint gau2grid gdma libint2 pcmsolver simint libxc psi4
grep -r theoryfs2 $PREFIX/share/cmake/ || true
conda list
PASSFAIL="--passfail"
MKL_CBWR=AVX pytest -rws -v --durations=100 --durations-min 60.0 -n auto -k "not (large and freq)" $SP_DIR/psi4
python -c "import psi4; print('*** Psi4 {} built successfully. Buy psinet a beer!'.format(psi4.__version__))"
exit 0
