Python - Allow extensions in SQLite.

Signed-off-by: Adam Vandenberg <flangy@gmail.com>
master
Tobias Kräntzer 2010-09-22 08:15:33 +02:00 committed by Adam Vandenberg
parent 6b053b032c
commit 8147b3edf3
1 changed files with 6 additions and 1 deletions

View File

@ -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