aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/python_helper.rb
diff options
context:
space:
mode:
authorSamuel John2013-06-04 21:10:39 +0200
committerSamuel John2013-06-04 21:10:39 +0200
commit135eb31d6fc45b93696e96ab25e5f86c89fc71b3 (patch)
tree3049b9f0011c9158fe8fbb9f39cd66a0dddc82f3 /Library/Homebrew/python_helper.rb
parent816531e28dd476f5f266e3327f0b73b11c23e9ce (diff)
downloadbrew-135eb31d6fc45b93696e96ab25e5f86c89fc71b3.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/Homebrew/python_helper.rb')
-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