aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2012-04-26 20:35:09 -0500
committerJack Nagel2012-04-26 20:35:09 -0500
commitdb432b1b901442a6e86a73279a6cc42e13c86f14 (patch)
tree30a9b03a7d0f6d507ac15a684381d667375c55eb /Library
parent6865d16f9cfb6bd0c991551ce9e2915bc8c1f696 (diff)
downloadhomebrew-db432b1b901442a6e86a73279a6cc42e13c86f14.tar.bz2
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 #11882. Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/keg.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/keg.rb b/Library/Homebrew/keg.rb
index e0eba14cb..6e0a857e0 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