aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorSamuel John2013-06-04 21:10:39 +0200
committerSamuel John2013-06-04 21:10:39 +0200
commit3b1873cdb0297559a603501924ef49e36d12117d (patch)
tree97019a211358892cde34c3acbc3663efc93d8bab /Library
parent6200b5be17d5efcc11374364d6f62d082dd6a9af (diff)
downloadhomebrew-3b1873cdb0297559a603501924ef49e36d12117d.tar.bz2
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.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/python_helper.rb5
1 files changed, 2 insertions, 3 deletions
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