diff options
| author | Mike McQuaid | 2018-03-03 09:42:25 +0000 |
|---|---|---|
| committer | Mike McQuaid | 2018-03-03 09:42:25 +0000 |
| commit | 70253f0009ee8095a5d10ee7bdd891f1fe5cc35c (patch) | |
| tree | 4e161095ae6bce7c24bb7a9bd8b1abce43108b1c /Library/Homebrew/compat/requirements/language_module_requirement.rb | |
| parent | 84d718cbef0b96ef621a2ec51171f7d66c20f87d (diff) | |
| download | brew-70253f0009ee8095a5d10ee7bdd891f1fe5cc35c.tar.bz2 | |
Adjust docs and more internal code for Python 3.
Now we have `python` for Python 3 and `python@2` for Python 2 some more
adjustments need to be made.
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 |
