aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python3.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2013-05-06 09:42:39 -0700
committerAdam Vandenberg2013-05-06 09:42:39 -0700
commit1518d38aadbeb48507583c854235e1f77b1f75a1 (patch)
tree01ba5c69753303d0b26b832074fd8df16d4e6603 /Library/Formula/python3.rb
parent937f4794224ccaafa6b2d30297a60ec6360587fe (diff)
downloadhomebrew-1518d38aadbeb48507583c854235e1f77b1f75a1.tar.bz2
Python3: fails with LLVM 2336
Closes #19592.
Diffstat (limited to 'Library/Formula/python3.rb')
-rw-r--r--Library/Formula/python3.rb17
1 files changed, 16 insertions, 1 deletions
diff --git a/Library/Formula/python3.rb b/Library/Formula/python3.rb
index 33e51b9a2..6a99ecd4c 100644
--- a/Library/Formula/python3.rb
+++ b/Library/Formula/python3.rb
@@ -50,6 +50,19 @@ class Python3 < Formula
prefix/"Frameworks/Python.framework/Versions/#{VER}/lib"
end
+ fails_with :llvm do
+ build '2336'
+ cause <<-EOS.undent
+ Could not find platform dependent libraries <exec_prefix>
+ Consider setting $PYTHONHOME to <prefix>[:<exec_prefix>]
+ python.exe(14122) malloc: *** mmap(size=7310873954244194304) failed (error code=12)
+ *** error: can't allocate region
+ *** set a breakpoint in malloc_error_break to debug
+ Could not import runpy module
+ make: *** [pybuilddir.txt] Segmentation fault: 11
+ EOS
+ end
+
def install
# Unset these so that installing pip and distribute puts them where we want
# and not into some other Python the user has installed.
@@ -74,7 +87,9 @@ class Python3 < Formula
distutils_fix_stdenv
# Python does not need all of X11, these bundled Headers are enough
- ENV.append 'CPPFLAGS', "-I#{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers" unless MacOS::CLT.installed?
+ unless MacOS::CLT.installed?
+ ENV.append 'CPPFLAGS', "-I#{MacOS.sdk_path}/System/Library/Frameworks/Tk.framework/Versions/8.5/Headers"
+ end
# Allow sqlite3 module to load extensions: http://docs.python.org/library/sqlite3.html#f1
inreplace "setup.py", 'sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1"))', 'pass'