[86256] trunk/dports/python/py-mpi4py/Portfile
adfernandes at macports.org
adfernandes at macports.org
Sun Oct 23 18:18:03 PDT 2011
Revision: 86256
http://trac.macports.org/changeset/86256
Author: adfernandes at macports.org
Date: 2011-10-23 18:18:00 -0700 (Sun, 23 Oct 2011)
Log Message:
-----------
py-mpi4py : better error checking (no errors thrown in body of port)
Modified Paths:
--------------
trunk/dports/python/py-mpi4py/Portfile
Modified: trunk/dports/python/py-mpi4py/Portfile
===================================================================
--- trunk/dports/python/py-mpi4py/Portfile 2011-10-24 01:12:32 UTC (rev 86255)
+++ trunk/dports/python/py-mpi4py/Portfile 2011-10-24 01:18:00 UTC (rev 86256)
@@ -8,8 +8,6 @@
version 1.2.2
revision 2
categories python
-python.versions 25 26 27
-python.default_version 27
description MPI for Python - Python bindings for MPI
long_description \
MPI for Python (mpi4py) provides bindings of the Message Passing Interface \
@@ -33,20 +31,23 @@
rmd160 434d411aa4e954706f2ca8bdde115dc654b58f21
platforms darwin
+python.versions 25 26 27
+python.default_version 27
+
depends_lib-append port:openmpi
build.args-append "--mpicc=${prefix}/bin/openmpicc"
# openmpi and mpich2 are not universal
universal_variant no
-if { ${os.major} < 9 && [variant_isset mpich2] } {
- error "Mac OS 10.4 and earlier require openmpi"
-}
+if { ${os.platform} != "darwin" || ${os.major} > 8 } {
-variant mpich2 description {builds with the mpich2 port} {
- depends_lib-append port:mpich2
- depends_lib-delete port:openmpi
- build.args-delete "--mpicc=${prefix}/bin/openmpicc"
+ variant mpich2 description {builds with the mpich2 port} {
+ build.args-delete "--mpicc=${prefix}/bin/openmpicc"
+ depends_lib-delete port:openmpi
+ depends_lib-append port:mpich2
+ }
+
}
variant interpreter description {builds an mpi enabled python interpreter} {
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20111023/5c7fe0ef/attachment-0001.html>
More information about the macports-changes
mailing list