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`.
This commit is contained in:
parent
cae03e3363
commit
a7a35efff4
@ -191,11 +191,11 @@ class PythonInstalled < Requirement
|
||||
end
|
||||
end
|
||||
|
||||
# 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?
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user