Ticket #26790: Portfile-py27-mpi4py

File Portfile-py27-mpi4py, 1.7 KB (added by kurtjaeke@…, 14 years ago)
Line 
1PortSystem      1.0
2PortGroup       python27 1.0
3
4name            py27-mpi4py
5version         1.2.2
6categories      python
7description     MPI for Python - Python bindings for MPI
8long_description \
9    MPI for Python (mpi4py) provides bindings of the Message Passing Interface \
10    (MPI) standard for the Python programming language, allowing any Python \
11    program to exploit multiple processors. This package is constructed on top of \
12    the MPI-1/MPI-2 specification and provides an object oriented interface which \
13    closely follows MPI-2 C++ bindings. It supports point-to-point (sends, \
14    receives) and collective (broadcasts, scatters, gathers) communications of \
15    any picklable Python object as well as optimized communications of Python \
16    object exposing the single-segment buffer interface (NumPy arrays, builtin \
17    bytes/string/array objects).
18
19
20maintainers     adfernandes openmaintainer
21
22homepage        http://code.google.com/p/mpi4py/
23master_sites    googlecode:mpi4py
24distname        mpi4py-${version}
25checksums       md5     91c1b962529adfd90b9f9f98db5624b7 \
26                sha1    e08d09257794a85d010a22ad9bda9d1c89a6258f \
27                rmd160  434d411aa4e954706f2ca8bdde115dc654b58f21
28platforms       darwin
29
30if { ${os.major} < 9 } {
31    default_variants +openmpi
32}
33
34if {  ${os.major} < 9 &&  ![variant_isset openmpi] } {
35    error "Mac OS 10.4 and earlier require the openmpi variant"
36}
37
38variant openmpi description {builds with the openmpi port} {
39    depends_lib-append  port:openmpi
40    build.target        build "--mpicc=${prefix}/bin/openmpicc"
41}
42
43variant interpreter description {builds an mpi enabled python interpreter} {
44    patchfiles-append   patch-conf-mpidistutils.py.diff
45}