aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/python.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Formula/python.rb')
-rw-r--r--Library/Formula/python.rb7
1 files changed, 6 insertions, 1 deletions
diff --git a/Library/Formula/python.rb b/Library/Formula/python.rb
index 82904fce1..4d55a791f 100644
--- a/Library/Formula/python.rb
+++ b/Library/Formula/python.rb
@@ -105,6 +105,11 @@ class Python <Formula
args << "--enable-shared" unless ARGV.include? '--static'
end
+ # allow sqlite3 module to load extensions
+ inreplace "setup.py",
+ 'sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1"))',
+ '#sqlite_defines.append(("SQLITE_OMIT_LOAD_EXTENSION", "1"))'
+
system "./configure", *args
system "make"
ENV.j1 # Installs must be serialized
@@ -151,4 +156,4 @@ class Python <Formula
s = framework_caveats + s if as_framework?
return s
end
-end
+end \ No newline at end of file