Add python27 dependency

Fixes Homebrew/homebrew#25561.
Fixes Homebrew/homebrew#25410.
This commit is contained in:
Misty De Meo 2013-12-30 13:19:05 -08:00
parent bc7810e07e
commit 31ed0d6505

View File

@ -118,3 +118,12 @@ class GitDependency < Requirement
default_formula 'git' default_formula 'git'
satisfy { which('git') } satisfy { which('git') }
end end
class Python27Dependency < Requirement
fatal true
default_formula 'python'
satisfy do
# Note that python -V outputs to stderr
`python -V 2>&1` =~ /^Python 2.7/
end
end