|
|
|
|
|
import site; site.getsitepackages()
|
|
|
|
|
|
cd PATH-TO-LOCSCALE
|
|
|
wget http://mpi4py.googlecode.com/files/mpi4py-2.0.0.tar.gz
|
|
|
tar -zxf $PWD/mpi4py-2.0.0.tar.gz
|
|
|
cd mpi4py-2.0.0
|
|
|
cat > mpi.cfg << EOF
|
|
|
[openmpi]
|
|
|
mpi_dir = ${buildout:directory}/parts/openmpi
|
|
|
mpicc = %(mpi_dir)s/bin/mpicc
|
|
|
mpicxx = %(mpi_dir)s/bin/mpicxx
|
|
|
library_dirs = %(mpi_dir)s/include/openmpi
|
|
|
runtime_library_dirs = %(library_dirs)s
|
|
|
|
|
|
EOF
|
|
|
|
|
|
# assuming EMAN2 is the default Python framework
|
|
|
python setup.py build --mpi=openmpi
|
|
|
python setup.py install --prefix=$PWD
|
|
|
python -c 'import mpi4py’ |
|
|
\ No newline at end of file |