From fbbfb9008cbac67537bdc7e4462558c94bb41019 Mon Sep 17 00:00:00 2001 From: samueljohn Date: Tue, 2 Oct 2012 11:37:33 +0200 Subject: [PATCH] Finding brewed gfortran by env: userpaths --- numpy.rb | 3 +++ scipy.rb | 3 +++ 2 files changed, 6 insertions(+) diff --git a/numpy.rb b/numpy.rb index 08f3376..7866c48 100644 --- a/numpy.rb +++ b/numpy.rb @@ -60,6 +60,9 @@ def patches def install # Numpy ignores FC and FCFLAGS therefore we don't need ENV.fortran here :-( + # Allow numpy to find brewed python + env :userpaths + if build.include? 'use-openblas' # For maintainers: # Check which BLAS/LAPACK numpy actually uses via: diff --git a/scipy.rb b/scipy.rb index 1fbbc3b..34276f9 100644 --- a/scipy.rb +++ b/scipy.rb @@ -19,6 +19,9 @@ class Scipy < Formula option 'use-openblas', "Use openBLAS instead of Apple's Accelerate Framework" def install + # Allow brewed python + env :userpaths + # This hack is no longer needed with superenv but I leave it here because # people might want to use a custom CC compiler with scipy by setting # --env=std and HOMEBREW_CC: