diff options
| author | Mike McQuaid | 2013-08-30 09:14:07 +0100 | 
|---|---|---|
| committer | Mike McQuaid | 2013-08-30 09:14:07 +0100 | 
| commit | a2f6fc4a42329fa3acc5036f2891eba363afd777 (patch) | |
| tree | a0b23e968c5480d657560481e33e34637bbd6168 /Library/Formula/boost.rb | |
| parent | a9fe7bf21ee8bf2202726fcfebfc17ec5ae1a872 (diff) | |
| download | homebrew-a2f6fc4a42329fa3acc5036f2891eba363afd777.tar.bz2 | |
boost: enable bottles, print Python bottle caveat.
Closes #21824.
Diffstat (limited to 'Library/Formula/boost.rb')
| -rw-r--r-- | Library/Formula/boost.rb | 16 | 
1 files changed, 10 insertions, 6 deletions
diff --git a/Library/Formula/boost.rb b/Library/Formula/boost.rb index e32aa6816..570fa2672 100644 --- a/Library/Formula/boost.rb +++ b/Library/Formula/boost.rb @@ -54,12 +54,6 @@ class Boost < Formula      ] unless build.head?    end -  def pour_bottle? -    # Don't use the bottle if there is a Homebrew python installed as users -    # will probably want to link against that instead. -    not Formula.factory('python').installed? -  end -    def install      # https://svn.boost.org/trac/boost/ticket/8841      if build.with? 'mpi' and !build.without? 'single' @@ -160,4 +154,14 @@ class Boost < Formula      system "./bootstrap.sh", *bargs      system "./b2", *args    end + +  def caveats +    if pour_bottle? and Formula.factory('python').installed? +      <<-EOS.undent +      The Boost bottle's module will not import into a Homebrew-installed Python. +      If you use the Boost Python module then please: +        brew install boost --build-from-source +      EOS +    end +  end  end  | 
