diff options
| author | Tim D. Smith | 2014-10-01 18:40:04 -0700 |
|---|---|---|
| committer | Tim D. Smith | 2014-10-02 11:58:13 -0700 |
| commit | e8ec113bca2e07f1e873e9c9312a036f3d7e0146 (patch) | |
| tree | 6ca502a760e4e302413790f8405d758903bf4415 /Library/Homebrew/formula_cellar_checks.rb | |
| parent | 59f098849be9f1ea6eb6b891e2700170891c4f67 (diff) | |
| download | homebrew-e8ec113bca2e07f1e873e9c9312a036f3d7e0146.tar.bz2 | |
Audit formulæ for easy-install.pth files
Closes #32860.
Diffstat (limited to 'Library/Homebrew/formula_cellar_checks.rb')
| -rw-r--r-- | Library/Homebrew/formula_cellar_checks.rb | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/Library/Homebrew/formula_cellar_checks.rb b/Library/Homebrew/formula_cellar_checks.rb index f639c2046..372fcca87 100644 --- a/Library/Homebrew/formula_cellar_checks.rb +++ b/Library/Homebrew/formula_cellar_checks.rb @@ -120,6 +120,19 @@ module FormulaCellarChecks "The offending files are: \n #{files * "\n "}"] end + def check_easy_install_pth lib + pth_found = Dir["#{lib}/python{2.7,3.4}/site-packages/easy-install.pth"].map { |f| File.dirname(f) } + return if pth_found.empty? + + ["easy-install.pth files were found in #{pth_found.join(", ")}.", + <<-EOS.undent + These .pth files are likely to cause link conflicts. Please + invoke setup.py with options --single-version-externally-managed + --record=install.txt. + EOS + ] + end + private def relative_glob(dir, pattern) |
