sqlite extension support was added in python 2.7. This requires sqlite to be built with --enable-dynamic-extensions (which nowadays is the default). Unfortunately we still wrap extensions in a use flag, which will be fixed in another bug.
Created attachment 245584 [details] python-2.7-r1.ebuild Modified ebuild builds sqlite extension support if USE=sqlite is enabled.
(In reply to comment #0) > Unfortunately we still wrap extensions in a use flag, which will be fixed in > another bug. > Just use EAPI 2 use dependencies like >=dev-db/sqlite:3[extensions]
- Patches for ebuilds, instead of whole ebuilds, are preferred. - The primary ebuilds for Python 2.7, 3.1 and 3.2 are in python overlay, not in gentoo-x86. - It's better to add support for a `configure` option: http://bugs.python.org/issue10268 http://svn.python.org/view?view=rev&revision=86045 This option will be included in Python >=3.2_pre20101107:3.2 in python overlay. Upstream developers treat new options as new features, so I'm planning to create a backport patch for Python >=2.7.1_pre20101107:2.7 in python overlay. - Python 2.7.1 will be released in not too distant future, so I suggest to wait for this release. The patchset for Python 2.7.1 will be based on a patchset for 2.7.1_pre* from python overlay.
Support for loadable sqlite extensions is also enabled in dev-python/pysqlite-2.6.0-r1.
*** Bug 346817 has been marked as a duplicate of this bug. ***
Fixed also in Python 2.7.1.