Skip to content

Instantly share code, notes, and snippets.

@thecubic
Created April 7, 2014 19:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save thecubic/10038840 to your computer and use it in GitHub Desktop.
Save thecubic/10038840 to your computer and use it in GitHub Desktop.
python sqlite3 static version
## get pysqlite
$ git clone https://github.com/ghaering/pysqlite
## get static / self-contained version
$ wget sqlite-amalgamation-3080403.zip && unzip sqlite-amalgamation-3080403.zip
## copy sqlite3.c to pysqlite
$ cp sqlite-amalgamation-3080403/sqlite3.c pysqlite/sqlite3.c
## build_static (a secret cheat code)
$ cd pysqlite
$ python setup.py build_static
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment