Dear All;

I was having a problem building the SQLite interface for python, pysqlite.  I finally traced it down to the setup.py script using the wrong include and linking directories for building the extensions.  The file setup.cfg was using the general defaults of /usr/include and /usr/lib, which are totally wrong when building for mips on an amd-64 platform.  So, I built a patch file, and submit it to all of you here for your approval.  Or not -- this is my first shot at something like this, so go ahead and tear it apart.  But, I hope if anybody else has this problem, they will find this patch file useful.

The file listing follows.  It is for the file "patch_setup.cfg", and it goes in the directory .....packages/openwrt-packages/lang/pysqlite/patches

--- pysqlite-2.3.5/setup.cfg.orig       2008-03-18 19:21:55.000000000 -0500
+++ pysqlite-2.3.5/setup.cfg    2008-03-18 19:22:46.000000000 -0500
@@ -1,5 +1,5 @@
[build_ext]
define=
-include_dirs=/usr/include
-library_dirs=/usr/lib
+include_dirs=${CPPFLAGS}
+library_dirs=${LDFLAGS}
libraries=sqlite3

Enjoy.  I hope it saves somebody some time, and perhaps even makes it into the next release.

spudbeach
steve@thebeachfamily.org