diff options
| author | Mike McQuaid | 2016-10-03 08:10:12 +0100 |
|---|---|---|
| committer | GitHub | 2016-10-03 08:10:12 +0100 |
| commit | 1e1903e4cc0ef928081ebab6b7a8e478de493b2a (patch) | |
| tree | 033208ce4cad06bad16d4e105631c117023cd39d /Library/Homebrew/exceptions.rb | |
| parent | 35ee2831086e923e7fcaf75fb440b01312e3f9c5 (diff) | |
| parent | 23a38e0ff6beb26f86eca0c56b25d6100375b60d (diff) | |
| download | brew-1e1903e4cc0ef928081ebab6b7a8e478de493b2a.tar.bz2 | |
Merge pull request #636 from ilovezfs/spooky_python
virtualenv_install_with_resources: select correct python
Diffstat (limited to 'Library/Homebrew/exceptions.rb')
| -rw-r--r-- | Library/Homebrew/exceptions.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Library/Homebrew/exceptions.rb b/Library/Homebrew/exceptions.rb index e01a60c75..1b2b24691 100644 --- a/Library/Homebrew/exceptions.rb +++ b/Library/Homebrew/exceptions.rb @@ -294,6 +294,17 @@ class FormulaConflictError < RuntimeError end end +class FormulaAmbiguousPythonError < RuntimeError + def initialize(formula) + super <<-EOS.undent + The version of python to use with the virtualenv in the `#{formula.full_name}` formula + cannot be guessed automatically. If the simultaneous use of python and python3 + is intentional, please add `:using => "python"` or `:using => "python3"` to + `virtualenv_install_with_resources` to resolve the ambiguity manually. + EOS + end +end + class BuildError < RuntimeError attr_reader :formula, :env |
