diff options
| author | Tim D. Smith | 2014-11-10 19:16:49 -0800 |
|---|---|---|
| committer | Tim D. Smith | 2014-11-14 16:05:18 -0800 |
| commit | 10d0824483034be6d1a7dc56c747776b78715980 (patch) | |
| tree | f79b76187cfc97011320bd351f4debce7db89e35 /Library | |
| parent | 7348206e538fc249dcca83c62dc43d5d91c9941a (diff) | |
| download | brew-10d0824483034be6d1a7dc56c747776b78715980.tar.bz2 | |
doctor: check that Python site-packages directory is writable
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/doctor.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/cmd/doctor.rb b/Library/Homebrew/cmd/doctor.rb index 8cb729dd1..35259532f 100644 --- a/Library/Homebrew/cmd/doctor.rb +++ b/Library/Homebrew/cmd/doctor.rb @@ -434,6 +434,19 @@ end 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 |
