diff options
| author | Tobias Kräntzer | 2010-09-22 08:15:33 +0200 |
|---|---|---|
| committer | Adam Vandenberg | 2010-10-13 06:30:41 -0700 |
| commit | 57bcdac210b7610acaa60435d3a6e889c58532ae (patch) | |
| tree | 8498fe49301f3bebff60b8f4a0a7a718ab4e8e8e /Library/Formula/python.rb | |
| parent | a5796a8fb8a0ee091635e8751fc0207ddcc82a10 (diff) | |
| download | homebrew-57bcdac210b7610acaa60435d3a6e889c58532ae.tar.bz2 | |
Python - Allow extensions in SQLite.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Diffstat (limited to 'Library/Formula/python.rb')
| -rw-r--r-- | Library/Formula/python.rb | 7 |
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 |
