[MacPorts] #48473: py-h5py @2.5.0_1: add parallel support
MacPorts
noreply at macports.org
Fri Jul 31 09:38:03 PDT 2015
#48473: py-h5py @2.5.0_1: add parallel support
--------------------------+------------------------
Reporter: petr@… | Owner: eborisch@…
Type: enhancement | Status: new
Priority: Normal | Milestone:
Component: ports | Version: 2.3.3
Resolution: | Keywords:
Port: py-h5py |
--------------------------+------------------------
Comment (by eborisch@…):
This should work, but I won't have time to dig into it for over a week.
You will need to have hdf5 +{some mpi flavor} installed. If anyone wants
to test this out further and commit it, feel free.
{{{
Index: Portfile
===================================================================
--- Portfile (revision 139023)
+++ Portfile (working copy)
@@ -3,6 +3,7 @@
PortSystem 1.0
PortGroup python 1.0
+PortGroup mpi 1.0
name py-h5py
version 2.5.0
@@ -53,10 +54,18 @@
conflicts py${python.version}-h5py-devel
}
+if {[mpi_variant_isset]} {
+ pre-build {
+ system -W ${worksrcpath} "${python.bin} setup.py configure --mpi"
+ }
+ depends_lib-append port:py${python.version}-mpi4py
+}
+
python.default_version 27
distname h5py-${version}
if {${name} ne ${subport}} {
+ mpi.setup
depends_lib-append port:py${python.version}-numpy \
port:py${python.version}-six \
port:py${python.version}-pkgconfig \
}}}
--
Ticket URL: <https://trac.macports.org/ticket/48473#comment:1>
MacPorts <https://www.macports.org/>
Ports system for OS X
More information about the macports-tickets
mailing list