Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 149963 - dev-python/django ebuild should not depend on pysqlite if python >= 2.5 is available
Summary: dev-python/django ebuild should not depend on pysqlite if python >= 2.5 is av...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
: 149961 (view as bug list)
Depends on:
Blocks: python-2.5
  Show dependency tree
 
Reported: 2006-10-03 07:54 UTC by Chris Connett
Modified: 2006-10-03 12:38 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Chris Connett 2006-10-03 07:54:07 UTC
The ebuild for dev-python/django depends on pysqlite unconditionally.

Python 2.5 includes sqlite functionality in the standard library and blocks pysqlite.  If Python 2.5 is available, the package should not depend on pysqlite.
Comment 1 Chris Connett 2006-10-03 08:00:35 UTC
I believe this value for RDEPEND is correct.

RDEPEND=">=dev-lang/python-2.3
		sqlite? || (
                  >=dev-lang/python-2.5
                  >=dev-python/pysqlite-2.0.3 )
		postgres? ( <dev-python/psycopg-1.99 )
		mysql? ( dev-python/mysql-python )
		dev-python/imaging"
Comment 2 Jakub Moc (RETIRED) gentoo-dev 2006-10-03 08:05:26 UTC
The RDEPEND is just fine.
Comment 3 Chris Connett 2006-10-03 08:05:34 UTC
*** Bug 149961 has been marked as a duplicate of this bug. ***
Comment 4 Chris Connett 2006-10-03 08:15:46 UTC
How is it fine?  My python-2.5 out-of-hard-mask system has conflicting blocking packages if the portage ebuild is used. dev-lang/python-2.5 blocks dev-python/pysqlite.  dev-python/django (as is) requires dev-python/pysqlite.  This is a blocker for 2.5 de-hard-mask-ing.
Comment 5 Jakub Moc (RETIRED) gentoo-dev 2006-10-03 08:18:09 UTC
(In reply to comment #4)
> How is it fine?  My python-2.5 out-of-hard-mask system has conflicting blocking
> packages if the portage ebuild is used. dev-lang/python-2.5 blocks
> dev-python/pysqlite.  dev-python/django (as is) requires dev-python/pysqlite. 
> This is a blocker for 2.5 de-hard-mask-ing.

Learn to read the deps.
 
sqlite? || (
                  >=dev-lang/python-2.5
                  >=dev-python/pysqlite-2.0.3 )

means _either_ >=dev-lang/python-2.5 _or_ >=dev-python/pysqlite-2.0.3. If you have >=dev-lang/python-2.5, it won't depend on >=dev-python/pysqlite-2.0.3.
Comment 6 Chris Connett 2006-10-03 08:25:22 UTC
Correct.  That is the intention.  If you have >=dev-lang/python-2.5, it won't depend on >=dev-python/pysqlite-2.0.3, because python-2.5 includes the functionality.  The RDEPEND I posted is a proposed fix, not the current value of RDEPEND in portage.  Sorry if that created any confusion.
Comment 7 Jakub Moc (RETIRED) gentoo-dev 2006-10-03 08:30:13 UTC
> Sorry if that created any confusion.

Eh, that was indeed confusing like hell... :P

Comment 8 Alastair Tse (RETIRED) gentoo-dev 2006-10-03 11:39:28 UTC
hang on, are you sure about this? i am pretty sure the version of django in portage does not support python 2.5's sqlite3 module. in fact that was only added a week ago:

http://code.djangoproject.com/changeset/3818

so the current dep is correct, it will only work with pysqlite2 even if python2.5 is installed. python2.5 presents pysqlite as sqlite3.
Comment 9 Chris Connett 2006-10-03 12:38:55 UTC
Ah, OK then.  I hadn't tested release 0.95 against Python 2.5 (since it wouldn't install).  Invalid is OK, as long as the next release does have correct dependencies.