Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 335505 - dev-lang/python:{2.7,3.2}: Enable sqlite extension support
Summary: dev-lang/python:{2.7,3.2}: Enable sqlite extension support
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All All
: High enhancement (vote)
Assignee: Python Gentoo Team
URL: http://bugs.python.org/issue10268
Whiteboard: 2.7.1
Keywords: InOverlay, InVCS
: 346817 (view as bug list)
Depends on:
Blocks:
 
Reported: 2010-09-01 12:42 UTC by Johan Bergström
Modified: 2010-11-28 19:07 UTC (History)
3 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
python-2.7-r1.ebuild (python-2.7-r1.ebuild,9.55 KB, text/plain)
2010-09-01 12:43 UTC, Johan Bergström
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Johan Bergström 2010-09-01 12:42:08 UTC
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.
Comment 1 Johan Bergström 2010-09-01 12:43:04 UTC
Created attachment 245584 [details]
python-2.7-r1.ebuild

Modified ebuild builds sqlite extension support if USE=sqlite is enabled.
Comment 2 Petteri Räty (RETIRED) gentoo-dev 2010-10-31 09:27:57 UTC
(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]
Comment 3 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-10-31 17:34:40 UTC
- 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.
Comment 4 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-10-31 19:35:18 UTC
Support for loadable sqlite extensions is also enabled in dev-python/pysqlite-2.6.0-r1.
Comment 5 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-11-28 01:16:12 UTC
*** Bug 346817 has been marked as a duplicate of this bug. ***
Comment 6 Arfrever Frehtes Taifersar Arahesis (RETIRED) gentoo-dev 2010-11-28 19:07:16 UTC
Fixed also in Python 2.7.1.