aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Formula/git-cola.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Formula/git-cola.rb b/Library/Formula/git-cola.rb
index 73aed27d0..ceeca0ecc 100644
--- a/Library/Formula/git-cola.rb
+++ b/Library/Formula/git-cola.rb
@@ -19,7 +19,7 @@ class GitCola < Formula
end
def install
- ENV.prepend 'PYTHONPATH', "#{HOMEBREW_PREFIX}/lib/python", ':'
+ ENV.prepend 'PYTHONPATH', "#{HOMEBREW_PREFIX}/lib/#{which_python}/site-packages", ':'
system "make", "prefix=#{prefix}", "install"
if ARGV.include? '--build-docs'
@@ -30,4 +30,8 @@ class GitCola < Formula
"install", "install-html"
end
end
+
+ def which_python
+ "python" + `python -c 'import sys;print(sys.version[:3])'`.strip
+ end
end