aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/xapian.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Formula/xapian.rb b/Library/Formula/xapian.rb
index da81db43f..2db493a0e 100644
--- a/Library/Formula/xapian.rb
+++ b/Library/Formula/xapian.rb
@@ -54,6 +54,8 @@ class Xapian < Formula
if build.with? 'python'
(lib+'python2.7/site-packages').mkpath
ENV['PYTHON_LIB'] = lib+'python2.7/site-packages'
+ # configure looks for python2 and system python doesn't install one
+ ENV["PYTHON"] = which "python"
args << "--with-python"
else
args << "--without-python"