diff options
| author | ilovezfs | 2017-12-30 14:49:26 -0800 | 
|---|---|---|
| committer | ilovezfs | 2017-12-30 15:11:14 -0800 | 
| commit | 5496a04dd977b1e0d6c71ed0ff6de01e722ca513 (patch) | |
| tree | 71eb8e822c0536a48aefba83d485cd6bc3f33973 /Library/Homebrew/language/python.rb | |
| parent | 176ed97d4241ae673f8d7ef1daa43efa1695d06f (diff) | |
| download | brew-5496a04dd977b1e0d6c71ed0ff6de01e722ca513.tar.bz2 | |
language/python: handle python@* in virtualenv_install_with_resources
Diffstat (limited to 'Library/Homebrew/language/python.rb')
| -rw-r--r-- | Library/Homebrew/language/python.rb | 6 | 
1 files changed, 3 insertions, 3 deletions
| diff --git a/Library/Homebrew/language/python.rb b/Library/Homebrew/language/python.rb index b52714dd5..3908f4b8f 100644 --- a/Library/Homebrew/language/python.rb +++ b/Library/Homebrew/language/python.rb @@ -134,11 +134,11 @@ module Language        def virtualenv_install_with_resources(options = {})          python = options[:using]          if python.nil? -          wanted = %w[python python3].select { |py| needs_python?(py) } +          wanted = %w[python python@2 python@3 python3].select { |py| needs_python?(py) }            raise FormulaAmbiguousPythonError, self if wanted.size > 1 -          python = wanted.first || "python" +          python = wanted.first || "python2.7"          end -        venv = virtualenv_create(libexec, python) +        venv = virtualenv_create(libexec, python.delete("@"))          venv.pip_install resources          venv.pip_install_and_link buildpath          venv | 
