[MacPorts] #48473: py-h5py @2.5.0_1: add parallel support

MacPorts noreply at macports.org
Fri Jul 31 20:56:06 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      |
--------------------------+------------------------
Changes (by eborisch@…):

 * cc: petr@… (added)


Comment:

 You can still install py-h5py with MPI support; just don't select one of
 the MPI variants.

 Updated version with variant checks for hdf5 and py-mpi4py (matching MPI
 implementations.)

 {{{
 Index: Portfile
 ===================================================================
 --- Portfile    (revision 139072)
 +++ 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
 @@ -57,6 +58,7 @@
  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 \
 @@ -68,6 +70,15 @@
          copy ${worksrcpath}/lzf/LICENSE.txt \
              ${destroot}${prefix}/share/doc/${subport}
      }
 +
 +    if {[mpi_variant_isset]} {
 +      mpi.enforce_variant   hdf5 \
 +                            py${python.version}-mpi4py
 +      pre-build {
 +          system -W ${worksrcpath} "${python.bin} setup.py configure
 --mpi"
 +      }
 +      depends_lib-append    port:py${python.version}-mpi4py
 +    }
  }

  livecheck.type      regex
 }}}

-- 
Ticket URL: <https://trac.macports.org/ticket/48473#comment:4>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list