Skip to content

Commit

Permalink
sip: fix build for unbrewed pythons
Browse files Browse the repository at this point in the history
  • Loading branch information
tdsmith committed Jun 18, 2015
1 parent 27d2e08 commit d514826
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Formula/sip.rb
Expand Up @@ -41,7 +41,7 @@ def install
system "make", "install"
system "make", "clean"

if which(python).realpath == (Formula[python].bin/python).realpath
if Formula[python].installed? && which(python).realpath == (Formula[python].bin/python).realpath
inreplace lib/"python#{version}/site-packages/sipconfig.py", Formula[python].prefix, Formula[python].opt_prefix
end
end
Expand Down

0 comments on commit d514826

Please sign in to comment.