From 07e24dda76142edfb18dd0fcb882f95fb91a8511 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 26 Apr 2012 20:35:09 -0500 Subject: [PATCH] mkpath all directories under lib/python* The python formula explicity creates lib/python2.7/site-packages. However, that path may already exist as a symlink if something that installs python bindings is installed before python itself. The result is that some random keg will end up hosting the site-packages directory instead of the top-level directory. Fix this by explicitly creating directories under lib/python* during linking. Fixes Homebrew/homebrew#11882. Signed-off-by: Jack Nagel --- Library/Homebrew/keg.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb index e0eba14cb8..6e0a857e08 100644 --- a/Library/Homebrew/keg.rb +++ b/Library/Homebrew/keg.rb @@ -97,7 +97,7 @@ class Keg < Pathname when /^ocaml/ then :mkpath when /^perl5/ then :mkpath when 'php' then :mkpath - when /^python[23]\.\d$/ then :mkpath + when /^python[23]\.\d/ then :mkpath when 'ruby' then :mkpath # Everything else is symlinked to the cellar else :link