#!/bin/sh
set -e

SRC_ROOT=`pwd`

mkdir -p ${ADTTMP}/doc
cp -a doc/examples ${ADTTMP}/doc/
mkdir -p ${ADTTMP}/python
cd ${ADTTMP}/python
echo "backend : PDF" > matplotlibrc

export OMPI_MCA_orte_rsh_agent=/bin/false

for python in `pyversions -s` `py3versions -s` ; do
    orterun --mca btl_tcp_if_include lo $python ${SRC_ROOT}/python/example-mpi.py ;
done

exit 0
