diff options
| author | Jack Nagel | 2014-03-28 18:55:20 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-03-28 19:04:31 -0500 |
| commit | 1c558d49dd4d1fcb24d0abac1ad4448b90421431 (patch) | |
| tree | cfcce678d6b18d3c4f447ff940ab99143ca9d317 /Library | |
| parent | 56feb978b88ad786d258b0030045d03c0ab2393d (diff) | |
| download | brew-1c558d49dd4d1fcb24d0abac1ad4448b90421431.tar.bz2 | |
Filter arguments for setup.py and build.py
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/formula.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 77c8c51de..006ccb3e8 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 |
