Skip to content

Commit

Permalink
py-numpy: fix 10.11 builds using MP clang 3.7
Browse files Browse the repository at this point in the history
  • Loading branch information
cjones051073 committed Sep 12, 2019
1 parent b49a028 commit 55351ea
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions python/py-numpy/Portfile
Expand Up @@ -69,6 +69,11 @@ if {${name} ne ${subport}} {
compilers.setup -clang -gcc44 -gcc45 \
-gcc46 -gcc47 -gcc48 -g95 clang37

# https://trac.macports.org/ticket/58771
if { ${os.major} == 15 } {
default_variants-append +clang37
}

depends_lib-append port:fftw-3 \
port:py${python.version}-nose \
port:py${python.version}-cython
Expand Down Expand Up @@ -103,7 +108,7 @@ if {${name} ne ${subport}} {
# https://github.com/numpy/numpy/issues/12230
if {![variant_isset atlas] &&
![variant_isset openblas]} {
default_variants +openblas
default_variants-append +openblas
}

# when using ATLAS (whether by default or specified by the user via
Expand Down Expand Up @@ -222,12 +227,12 @@ variant."
}

if {![fortran_variant_isset]} {
default_variants +gfortran
default_variants-append +gfortran
}

# determine if special wrapper values are needed for compiler names
# a procedure is needed since variants from PortGroup compilers must
# be evaluated before it can be determined if clang is being used
# be evaluated before it can be determined if clang is being used
proc use_wrapper {} {
global configure.cc

Expand Down

0 comments on commit 55351ea

Please sign in to comment.