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 | 31ed0d6505f26d70350d348980f477e3a66440d9 (patch) | |
| tree | 69d9384b1c5f4d0c55fec1c8abb4b37ce68e011d | |
| parent | bc7810e07ecc004393aa6192e322ef388122a067 (diff) | |
| download | brew-31ed0d6505f26d70350d348980f477e3a66440d9.tar.bz2 | |
Add python27 dependency
Fixes Homebrew/homebrew#25561.
Fixes Homebrew/homebrew#25410.
| -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 |
