

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
otool -L $SP_DIR/psi4/core$PYLIB_EXT
conda inspect linkages --show-files --groupby=dependency ambit chemps2 dkh libecpint gau2grid gdma libint2 pcmsolver simint libxc psi4
conda inspect objects -p $PREFIX $PKG_NAME
conda list
PASSFAIL=""
pytest -rws -v --durations=20 -n auto $SP_DIR/psi4 -m "quick and api" -k "suite"
pytest -rws -v --durations=20 -n auto $SP_DIR/psi4 -m "quick and cli"
python -c "import psi4; print('*** Psi4 {} built successfully. Buy psinet a beer!'.format(psi4.__version__))"
exit 0
