Spec-Zone.ru › Homebrew

Exception: FormulaUnknownPythonError Private

Inherits:
RuntimeError
  • Object
  • RuntimeError
  • FormulaUnknownPythonError
show all
Defined in:
exceptions.rb

Overview

This class is part of a private API. This class may only be used in the Homebrew/brew repository. Third parties should avoid using this class if possible, as it may be removed or changed without warning.

Raise when the Python version cannot be detected automatically.

Instance Method Summary collapse

  • #initialize(formula) ⇒ void constructor private

Constructor Details

#initialize(formula) ⇒ void

This method is part of a private API. This method may only be used in the Homebrew/brew repository. Third parties should avoid using this method if possible, as it may be removed or changed without warning.

Parameters:

  • formula (Formula, Language::Python::Virtualenv)


570
571
572
573
574
575
576
577
578
# File 'exceptions.rb', line 570

def initialize(formula)
  super <<~EOS
    The version of Python to use with the virtualenv in the `#{formula.full_name}` formula
    cannot be guessed automatically because a recognised Python dependency could not be found.
    If you are using a non-standard Python dependency, please add `:using => "python@x.y"`
    to 'virtualenv_install_with_resources' to resolve the issue manually.
  EOS
end

© 2009–present Homebrew contributors
Licensed under the BSD 2-Clause License.
https://docs.brew.sh/rubydoc/FormulaUnknownPythonError.html

Spec-Zone.ru

Настройки Оффлайн Что нового Помощь О нас
Spec-Zone .ru
спецификации, руководства, описания, API