aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/requirements
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/requirements')
-rw-r--r--Library/Homebrew/requirements/python_dependency.rb22
1 files changed, 3 insertions, 19 deletions
diff --git a/Library/Homebrew/requirements/python_dependency.rb b/Library/Homebrew/requirements/python_dependency.rb
index aee42d9f6..58ca58670 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