diff options
| author | Misty De Meo | 2013-12-30 13:19:05 -0800 |
|---|---|---|
| committer | Misty De Meo | 2013-12-30 13:20:58 -0800 |
| commit | 464b84037bf44e6c029a7af13db8d99d6a047967 (patch) | |
| tree | 13b657b31acfeac07526c1ebbcd44ace83a52200 /Library/Homebrew/requirements.rb | |
| parent | 517b91b459620ac1f819d47d12a905df291496dd (diff) | |
| download | homebrew-464b84037bf44e6c029a7af13db8d99d6a047967.tar.bz2 | |
Add python27 dependency
Fixes #25561.
Fixes #25410.
Diffstat (limited to 'Library/Homebrew/requirements.rb')
| -rw-r--r-- | Library/Homebrew/requirements.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/Library/Homebrew/requirements.rb b/Library/Homebrew/requirements.rb index 73e0860b7..45c128303 100644 --- a/Library/Homebrew/requirements.rb +++ b/Library/Homebrew/requirements.rb @@ -118,3 +118,12 @@ class GitDependency < Requirement default_formula 'git' satisfy { which('git') } 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 |
