Skip to content

Commit

Permalink
doctor: check that Python site-packages directory is writable
Browse files Browse the repository at this point in the history
  • Loading branch information
tdsmith committed Nov 15, 2014
1 parent 037c1b2 commit 2cc2da2
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions Library/Homebrew/cmd/doctor.rb
Expand Up @@ -434,6 +434,19 @@ def check_access_usr_local
end
end

def check_access_site_packages
if Language::Python.homebrew_site_packages.exist? && !Language::Python.homebrew_site_packages.writable_real?
<<-EOS.undent
#{Language::Python.homebrew_site_packages} isn't writable.
This can happen if you "sudo pip install" software that isn't managed
by Homebrew. If you install a formula with Python modules, the install
will fail during the link step.
You should probably `chown` #{Language::Python.homebrew_site_packages}
EOS
end
end

def check_access_logs
if HOMEBREW_LOGS.exist? and not HOMEBREW_LOGS.writable_real?
<<-EOS.undent
Expand Down

0 comments on commit 2cc2da2

Please sign in to comment.