Skip to content
Snippets Groups Projects
Unverified Commit eccdc4c2 authored by L. E. Segovia's avatar L. E. Segovia
Browse files

Cask: address @reitermarkus's comments

parent caf7df58
No related branches found
No related tags found
No related merge requests found
......@@ -128,17 +128,17 @@ module Cask
if result.status.success?
puts none_string
elsif result.stderr.match? "ImportError: No module named pkg_resources"
elsif result.stderr.include? "ImportError: No module named pkg_resources"
result = system_command "/usr/bin/python", "--version"
if result.stdout.match? "Python 2.7"
if result.stdout.include? "Python 2.7"
add_error "Your Python installation has a broken version of setuptools."
add_error "To fix, reinstall macOS or run 'sudo /usr/bin/python -m pip install -I setuptools'."
else
add_error "The system Python version is wrong."
add_error "To fix, run 'defaults write com.apple.versioner.python Version 2.7'."
end
elsif result.stderr.match? "pkg_resources.DistributionNotFound"
elsif result.stderr.include? "pkg_resources.DistributionNotFound"
add_error "Your Python installation is unable to find xattr."
else
add_error "unknown xattr error: #{result.stderr.first}"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment