From a70217d889664867fe2b3f0e709bf417dfb27d1c Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 26 Feb 2014 20:32:38 -0800 Subject: pyqt: use Formula[] --- Library/Formula/pyqt.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Library/Formula') diff --git a/Library/Formula/pyqt.rb b/Library/Formula/pyqt.rb index 287a6073e..66623b413 100644 --- a/Library/Formula/pyqt.rb +++ b/Library/Formula/pyqt.rb @@ -8,7 +8,7 @@ class Pyqt < Formula depends_on :python => :recommended depends_on :python3 => :optional - if !Formula.factory("python").installed? && build.with?("python") && + if !Formula["python"].installed? && build.with?("python") && build.with?("python3") odie <<-EOS.undent pyqt: You cannot use system Python 2 and Homebrew's Python 3 simultaneously. @@ -108,7 +108,7 @@ class Pyqt < Formula EOS pythons.each do |python, version| - unless Formula.factory(python).installed? + unless Formula[python].installed? ENV["PYTHONPATH"] = HOMEBREW_PREFIX/"lib/python#{version}/site-packages" end system python, "test.py" -- cgit v1.2.3