Add python27 dependency
Fixes Homebrew/homebrew#25561. Fixes Homebrew/homebrew#25410.
This commit is contained in:
parent
bc7810e07e
commit
31ed0d6505
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user