Browse files

Unlinked brewed python -> use system python

Up to now a brewed Python, even if not linked, was preferred over
and external Python, so that you had to completely `brew rm python`
to have a formula link against external (mostly system) Python.

From now on it is okay to `brew unlink python`.
  • Loading branch information...
1 parent de885ec commit 0b269c3af72d67c3582f96d833b99a09b5c71557 @samueljohn samueljohn committed Aug 15, 2013
Showing with 2 additions and 2 deletions.
  1. +2 −2 Library/Homebrew/requirements/python_dependency.rb
4 Library/Homebrew/requirements/python_dependency.rb
@@ -191,11 +191,11 @@ def pkg_config_path
- # Is the Python brewed (and linked)?
+ # Is the brewed Python installed
def brewed?
@brewed ||= begin
require 'formula'
- (Formula.factory(@name).opt_prefix/"bin/#{@name}").executable?
+ Formula.factory(@name).linked_keg.exist?

0 comments on commit 0b269c3

Please sign in to comment.