[116402] trunk/dports/python/py-mpi4py/Portfile

sean at macports.org sean at macports.org
Thu Jan 23 12:16:24 PST 2014


Revision: 116402
          https://trac.macports.org/changeset/116402
Author:   sean at macports.org
Date:     2014-01-23 12:16:24 -0800 (Thu, 23 Jan 2014)
Log Message:
-----------
py-mpi4py: use mpi portgroup

Modified Paths:
--------------
    trunk/dports/python/py-mpi4py/Portfile

Modified: trunk/dports/python/py-mpi4py/Portfile
===================================================================
--- trunk/dports/python/py-mpi4py/Portfile	2014-01-23 20:16:19 UTC (rev 116401)
+++ trunk/dports/python/py-mpi4py/Portfile	2014-01-23 20:16:24 UTC (rev 116402)
@@ -4,11 +4,15 @@
 PortSystem          1.0
 PortGroup           python 1.0
 PortGroup           bitbucket 1.0
+PortGroup           mpi 1.0
 
+mpi.setup           require
+
 bitbucket.setup     mpi4py mpi4py 1.3.1
 name                py-mpi4py
 license             BSD
 platforms           darwin
+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 \
@@ -27,22 +31,20 @@
 
 python.versions     25 26 27 31 32 33
 
+if {![mpi_variant_isset]} {
+    default_variants +mpich
+}
+
 if {${name} ne ${subport}} {
-    depends_lib-append port:openmpi
-    build.args-append  "--mpicc=${prefix}/bin/openmpicc"
+    depends_build-append \
+                    port:py${python.version}-setuptools \
+                    port:py${python.version}-cython
 
-    # openmpi and mpich are not universal
-    universal_variant no
 
-    variant mpich description {builds with the mpich port} {
-        build.args-delete   "--mpicc=${prefix}/bin/openmpicc"
-        build.args-append   "--mpicc=${prefix}/bin/mpicc-mp"
-        depends_lib-delete  port:openmpi
-        depends_lib-append  path:bin/mpicc-mp:mpich-default
+    pre-build {
+        build.args-append  "--mpicc=${mpi.cc}"
     }
 
-    variant mpich2 requires mpich description {Legacy compatibility variant} {}
-
     variant interpreter description {builds an mpi enabled python interpreter} {
         patchfiles-append   patch-conf-mpidistutils.py.diff
     }
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20140123/f180cbdc/attachment.html>


More information about the macports-changes mailing list