/
Portfile
57 lines (44 loc) · 2.11 KB
/
Portfile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4
PortSystem 1.0
PortGroup python 1.0
PortGroup bitbucket 1.0
PortGroup mpi 1.0
bitbucket.setup mpi4py mpi4py 3.1.4
revision 0
name py-mpi4py
license BSD
universal_variant no
description MPI for Python - Python bindings for MPI
long_description \
MPI for Python \(mpi4py\) provides bindings of the Message Passing \
Interface \(MPI\) standard for the Python programming language, allowing \
any Python program to exploit multiple processors. This package is \
constructed on top of the MPI-1/MPI-2 specification and provides an \
object oriented interface which closely follows MPI-2 C++ bindings. \
It supports point-to-point \(sends, receives\) and collective \
\(broadcasts, scatters, gathers\) communications of any picklable Python \
object as well as optimized communications of Python object exposing the \
single-segment buffer interface \(NumPy arrays, builtin \
bytes/string/array objects).
maintainers nomaintainer
checksums rmd160 27422bd2dc0e6130413ba755c82472ba97d1a660 \
sha256 6b283420c442f51030026a083ac0be28b6f9a08812b9b4b6e4b4cb727881deb6 \
size 369381
mpi.setup require
python.versions 38 39 310 311 312
if {${name} ne ${subport}} {
depends_build-append \
port:py${python.version}-setuptools
depends_build-append \
port:py${python.version}-cython-compat
set compat_path [string replace ${python.pkgd} 0 [string length ${python.prefix}]-1 ${prefix}/lib/py${python.version}-cython-compat]
build.env-append PYTHONPATH=${compat_path}
patchfiles-append \
patch-mpi.cfg.diff
post-patch {
reinplace "s|%PREFIX%|${prefix}|g" ${worksrcpath}/mpi.cfg
}
variant interpreter description {builds an mpi enabled python interpreter} {
patchfiles-append patch-conf-mpidistutils.py.diff
}
}