diff options
Diffstat (limited to 'Library/Formula')
| -rw-r--r-- | Library/Formula/python.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb index 49c3c3bde..c9358db43 100644 --- a/Library/Formula/python.rb +++ b/Library/Formula/python.rb @@ -40,6 +40,11 @@ class Python < Formula option :universal option 'quicktest', 'Run `make quicktest` after the build' + # --with-dtrace relies on CLT as the patch from + # http://bugs.python.org/issue13405 requires it. + # A note is added upstream about the CLT requirement. + option 'with-dtrace', 'Install with DTrace support' if MacOS::CLT.installed? + # Skip binaries so modules will load; skip lib because it is mostly Python files skip_clean ['bin', 'lib'] @@ -47,6 +52,10 @@ class Python < Formula prefix/"Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages" end + def patches + 'https://raw.github.com/gist/3415636/2365dea8dc5415daa0148e98c394345e1191e4aa/pythondtrace-patch.diff' + end if build.include? 'with-dtrace' + # The HOMEBREW_PREFIX location of site-packages. def site_packages HOMEBREW_PREFIX/"lib/python2.7/site-packages" @@ -76,6 +85,7 @@ class Python < Formula ] args << '--without-gcc' if ENV.compiler == :clang + args << '--with-dtrace' if build.include? 'with-dtrace' # Further, Python scans all "-I" dirs but not "-isysroot", so we add # the needed includes with "-I" here to avoid this err: |
