

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 gau2grid gdma libint2 pcmsolver simint libxc psi4
conda inspect objects -p $PREFIX $PKG_NAME
conda list
PASSFAIL=""
python $PREFIX/share/psi4/scripts/test_threading.py --passfail --ldd
python $PREFIX/share/psi4/scripts/test_threading.py ${PASSFAIL} --psiapi -n6
python -c "import psi4, sys, os; sys.exit(psi4.test('quick', extras=['-k', 'not run_dftd3__3body', '--durations=50', '-n', '1']))"
python -c "import psi4; print('*** Psi4 {} built successfully. Buy psinet a beer!'.format(psi4.__version__))"
exit 0
