From 1c558d49dd4d1fcb24d0abac1ad4448b90421431 Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Fri, 28 Mar 2014 18:55:20 -0500 Subject: [PATCH] Filter arguments for setup.py and build.py --- Library/Homebrew/formula.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 77c8c51de0..006ccb3e8f 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -583,6 +583,13 @@ class Formula ENV.remove_cc_etc end + # Turn on argument filtering in the superenv compiler wrapper. + # We should probably have a better mechanism for this than adding + # special cases to this method. + if cmd == "python" && %w[setup.py build.py].include?(args.first) + ENV.refurbish_args + end + rd.close $stdout.reopen wr $stderr.reopen wr