> I pulled apsw code and copied sqlite3.c and sqlit3.h file in src
> folder, but now it is showing me below error:
They should be in a folder named sqlite3, not src to be directly included. Near the top of the build you will see a line like one of the following telling you how SQLite is found.
SQLite: Using amalgamation ..../sqlite3.c
SQLite: Using system sqlite include/libraries
> Can you provide any help to generate package for APSW in Pyodide?
A simpler approach is to use the cibuildwheel tool locally.
# start in a clean working directory and make a virtual env
$ python3 -m venv venv
# Get latest APSW source from PyPI - this source will also download SQLite
$ venv/bin/pip download --no-deps --no-binary :all: apsw
# install cibuildwheel
$ venv/bin/pip install cibuildwheel
# build against source archive
$ venv/bin/cibuildwheel --platform pyodide apsw-3.46.1.0.tar.gz
# After a while and a success message, check the results
$ ls wheelhouse
apsw-3.46.1.0-cp312-cp312-pyodide_2024_0_wasm32.whl
PyPI doesn't allow publishing pyodide wheels yet. Once it does, APSW will be available there.
Roger