aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula
diff options
context:
space:
mode:
authorTim D. Smith2014-12-22 23:50:32 -0500
committerTim D. Smith2014-12-31 17:53:06 -0800
commitab84675e2e24d8135daadea9e0e41d228aeeb7a8 (patch)
tree6abb9daca8eb02a4cb0f84154296b1f785649c5f /Library/Formula
parent935c4d956a6add315975408cb7a7c7cb45cdb0e7 (diff)
downloadhomebrew-ab84675e2e24d8135daadea9e0e41d228aeeb7a8.tar.bz2
python3: remove stdenv build support
Diffstat (limited to 'Library/Formula')
-rw-r--r--Library/Formula/python3.rb29
1 files changed, 1 insertions, 28 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index 41f84f350..a9e273fdb 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -79,11 +79,7 @@ class Python3 < Formula
args << "--without-gcc" if ENV.compiler == :clang
- if superenv?
- distutils_fix_superenv(args)
- else
- distutils_fix_stdenv
- end
+ distutils_fix_superenv(args)
if build.universal?
ENV.universal_binary
@@ -195,29 +191,6 @@ class Python3 < Formula
"do_readline = '#{Formula["readline"].opt_lib}/libhistory.dylib'"
end
- def distutils_fix_stdenv
- # Python scans all "-I" dirs but not "-isysroot", so we add
- # the needed includes with "-I" here to avoid this err:
- # building dbm using ndbm
- # error: /usr/include/zlib.h: No such file or directory
- ENV.append "CPPFLAGS", "-I#{MacOS.sdk_path}/usr/include" unless MacOS::CLT.installed?
-
- # Don't use optimizations other than "-Os" here, because Python's distutils
- # remembers (hint: `python3-config --cflags`) and reuses them for C
- # extensions which can break software (such as scipy 0.11 fails when
- # "-msse4" is present.)
- ENV.minimal_optimization
-
- # We need to enable warnings because the configure.in uses -Werror to detect
- # "whether gcc supports ParseTuple" (https://github.com/Homebrew/homebrew/issues/12194)
- ENV.enable_warnings
- if ENV.compiler == :clang
- # http://docs.python.org/devguide/setup.html#id8 suggests to disable some Warnings.
- ENV.append_to_cflags "-Wno-unused-value"
- ENV.append_to_cflags "-Wno-empty-body"
- end
- end
-
def sitecustomize
<<-EOF.undent
# This file is created by Homebrew and is executed on each python startup.