From 689be6620341221df6e82ab98e1b9413a96a7442 Mon Sep 17 00:00:00 2001 From: Mike McQuaid Date: Mon, 20 Jan 2014 23:30:25 -0800 Subject: [PATCH] python_dependency: cleanup, fix satisfy. Closes Homebrew/homebrew#26067. --- .../requirements/python_dependency.rb | 22 +++---------------- 1 file changed, 3 insertions(+), 19 deletions(-) diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb index aee42d9f66..58ca58670f 100644 --- a/Library/Homebrew/requirements/python_dependency.rb +++ b/Library/Homebrew/requirements/python_dependency.rb @@ -4,7 +4,7 @@ class PythonDependency < Requirement fatal true satisfy :build_env => false do - which python_binary + which 'python' end def modify_build_environment @@ -13,30 +13,14 @@ class PythonDependency < Requirement # Deprecated def to_s - python_binary - end - - protected - - def python_binary 'python' end - - def system_python? - which(python_binary).to_s == "/usr/bin/python" - end end class Python3Dependency < PythonDependency default_formula 'python3' - protected - - def python_binary - 'python3' - end - - def system_python? - false + satisfy :build_env => false do + which 'python3' end end