Library/Homebrew/language/python.rb
def virtualenv_install_with_resources(options = {})
        python = options[:using]
        if python.nil?
          wanted = %w[python python@2 python2 python3 python@3 pypy].select { |py| needs_python?(py) }
          raise FormulaAmbiguousPythonError, self if wanted.size > 1

          python = wanted.first || "python2.7"
          python = "python3" if python == "python"
        end
        venv = virtualenv_create(libexec, python.delete("@"))
        venv.pip_install resources
        venv.pip_install_and_link buildpath
        venv
      end
# Helper method for the common case of installing a Python application.
# Creates a virtualenv in `libexec`, installs all `resource`s defined
# on the formula, and then installs the formula. An options hash may be
# passed (e.g., `:using => "python"`) to override the default, guessed
# formula preference for python or python2, or to resolve an ambiguous
# case where it's not clear whether python or python2 should be the
# default guess.
Helper method for the common case of installing a Python application.
Creates a virtualenv in `libexec`, installs all `resource`s defined
on the formula, and then installs the formula. An options hash may be
passed  to override the default, guessed
formula preference for python or python2, or to resolve an ambiguous
case where it's not clear whether python or python2 should be the
default guess.
Helper method for the common case of installing a Python application . Creates a virtualenv in ` libexec ` installs all ` resource ` s defined on the formula and then installs the formula . An options hash may be passed to override the default guessed formula preference for python or python2 or to resolve an ambiguous case where it ' s not clear whether python or python2 should be the default guess .
def virtualenv_install_with_resources(options = {})
        python = options[:using]
        if python.nil?
          wanted = %w[python python@2 python2 python3 python@3 pypy].select { |py| needs_python?(py) }
          raise FormulaAmbiguousPythonError, self if wanted.size > 1
          python = wanted.first || "python2.7"
          python = "python3" if python == "python"
        end
        venv = virtualenv_create(libexec, python.delete("@"))
        venv.pip_install resources
        venv.pip_install_and_link buildpath
        venv
      end
def virtualenv_install_with_resources ( options = { } ) python = options [ :using ] if python . nil? wanted = %w[ python python@2 python2 python3 python@3 pypy ] . select { | py | needs_python? ( py ) } raise FormulaAmbiguousPythonError , self if wanted . size > 1 python = wanted . first || "python2.7" python = "python3" if python == "python" end venv = virtualenv_create ( libexec , python . delete ( "@" ) ) venv . pip_install resources venv . pip_install_and_link buildpath venv end
Helper method for the common case of installing a Python application.
Helper method for the common case of installing a Python application .
options