From 135eb31d6fc45b93696e96ab25e5f86c89fc71b3 Mon Sep 17 00:00:00 2001 From: Samuel John Date: Tue, 4 Jun 2013 21:10:39 +0200 Subject: Python is less verbose with "brew: Using python.." Now it is only shown for an `python do ... end` block and not for ordinary python.site_packages or other methods. --- Library/Homebrew/python_helper.rb | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Library/Homebrew/python_helper.rb') diff --git a/Library/Homebrew/python_helper.rb b/Library/Homebrew/python_helper.rb index ef71b2a30..efc5a12a7 100644 --- a/Library/Homebrew/python_helper.rb +++ b/Library/Homebrew/python_helper.rb @@ -48,7 +48,7 @@ def python_helper(options={:allowed_major_versions => [2, 3]}, &block) # Now is the time to set the site_packages to the correct value py.site_packages = lib/py.xy/'site-packages' if block_given? - puts "brew: Python block (#{py.binary})..." if ARGV.verbose? + puts "brew: Python block (#{py.binary})..." if ARGV.verbose? && ARGV.debug? require 'superenv' # Ensure env changes are only temporary by using `with_build_environment` ENV.with_build_environment do @@ -71,8 +71,7 @@ def python_helper(options={:allowed_major_versions => [2, 3]}, &block) res end else - puts "brew: Using #{py.binary}" if ARGV.verbose? - # We return here with intention, because no block_given? + # We return the first available python, because no block_given? return py end end -- cgit v1.2.3