diff options
| author | Mike McQuaid | 2018-03-03 18:17:04 +0000 |
|---|---|---|
| committer | GitHub | 2018-03-03 18:17:04 +0000 |
| commit | bc3389bdae5be31e5447802cb0eb8e1a967f5b4d (patch) | |
| tree | 2d61e66163e0fbf4650f38bb104374a32f53914c /Library/Homebrew/compat/requirements/language_module_requirement.rb | |
| parent | 5e3003688f801a49a46c1b24cb5e27d5c276af30 (diff) | |
| parent | 70253f0009ee8095a5d10ee7bdd891f1fe5cc35c (diff) | |
| download | brew-master.tar.bz2 | |
Adjust docs and more internal code for Python 3.
Diffstat (limited to 'Library/Homebrew/compat/requirements/language_module_requirement.rb')
| -rw-r--r-- | Library/Homebrew/compat/requirements/language_module_requirement.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Library/Homebrew/compat/requirements/language_module_requirement.rb b/Library/Homebrew/compat/requirements/language_module_requirement.rb index 5ddce7a66..fc9dcc442 100644 --- a/Library/Homebrew/compat/requirements/language_module_requirement.rb +++ b/Library/Homebrew/compat/requirements/language_module_requirement.rb @@ -38,9 +38,9 @@ class LanguageModuleRequirement < Requirement when :perl ["/usr/bin/env", "perl", "-e", "use #{@import_name}"] when :python - ["/usr/bin/env", "python", "-c", "import #{@import_name}"] + ["/usr/bin/env", "python2", "-c", "import #{@import_name}"] when :python3 - ["/usr/bin/env", "python3", "-c", "import #{@import_name}"] + ["/usr/bin/env", "python", "-c", "import #{@import_name}"] when :ruby ["/usr/bin/env", "ruby", "-rubygems", "-e", "require '#{@import_name}'"] end @@ -51,8 +51,8 @@ class LanguageModuleRequirement < Requirement when :lua then "luarocks-5.2 install" when :lua51 then "luarocks-5.1 install" when :perl then "cpan -i" - when :python then "pip install" - when :python3 then "pip3 install" + when :python then "pip3 install" + when :python3 then "pip install" when :ruby then "gem install" end end |
