Python - Allow extensions in SQLite.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>master
parent
6b053b032c
commit
8147b3edf3
|
@ -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
|
Loading…
Reference in New Issue