| 79 | ==== Building pysqlite ==== |
| 80 | |
| 81 | The recommended way to build the SQLite bindings is to do a "static build", |
| 82 | which will download the latest sqlite3 amalgamation file, build and link it inside |
| 83 | the pysqlite module: |
| 84 | |
| 85 | {{{ |
| 86 | #!sh |
| 87 | $ tar xvfz <version>.tar.gz |
| 88 | $ cd <version> |
| 89 | $ python setup.py build_static install |
| 90 | }}} |
| 91 | |
| 92 | ''Note: Users of Mac OS X please take care; the Apple-supplied SQLite contains additional code to support file locking on network filesystems like AFP or SMB. This is not presently (3.3.6) in the mainline sources, so if you build your own SQLite from source it will not function correctly on such filesystems - typically it gives the error "{{{database is locked}}}". [http://www.alastairs-place.net/2006/07/sqlite_and_mac/ A patch] is available for version 3.3.6, based on Apple's code, otherwise you're probably best off using the Apple supplied version (presently 3.1.3).'' |