Permalink
Browse files

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>
  • Loading branch information...
1 parent 6865d16 commit db432b1b901442a6e86a73279a6cc42e13c86f14 @jacknagel jacknagel committed Apr 27, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 Library/Homebrew/keg.rb
View
@@ -97,7 +97,7 @@ def link
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

0 comments on commit db432b1

Please sign in to comment.