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.