ITeye博客

build apsw manually

mathgl · 2014-01-06 01:22 · python · 编程语言 · Markdown

download sqlite sources and copy all files to apsw/src

 

open setup.py

 

find in finalize_options of apsw_build_ext class

 

comment ext.libraries.append('sqlite3')

 

find ext_modules=[Extension("apsw",

                             ["src/apsw.c"] 

 

at the bottom 

 

and add sqlite3.c like

 

ext_modules=[Extension("apsw",

                             ["src/apsw.c", "src/sqlite3.c"],

 

save and build it.

评论(0)

暂无评论。

评论功能维护中,当前仅展示历史评论。