Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 631174 - dev-python/pytools should depend on dev-lang/python[sqlite]
Summary: dev-python/pytools should depend on dev-lang/python[sqlite]
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2017-09-17 02:03 UTC by Matt Turner
Modified: 2017-09-17 08:43 UTC (History)
0 users

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


Attachments
build.log showing failure (build.log,12.35 KB, text/plain)
2017-09-17 02:03 UTC, Matt Turner
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Matt Turner gentoo-dev 2017-09-17 02:03:55 UTC
Created attachment 494796 [details]
build.log showing failure

At least for running tests, python[sqlite] is required, otherwise:

test/test_pytools.py::test_diskdict FAILED

==================================================================================================== FAILURES =====================================================================================================
__________________________________________________________________________________________________ test_diskdict __________________________________________________________________________________________________

    def test_diskdict():
        if sys.platform.startswith("win"):
            pytest.xfail("unreliable on windows")
    
        from pytools.diskdict import DiskDict
    
        from tempfile import NamedTemporaryFile
    
        with NamedTemporaryFile() as ntf:
>           d = DiskDict(ntf.name)
E           ValueError: dictionary update sequence element #0 has length 1; 2 is required

test/test_pytools.py:168: ValueError
---------------------------------------------------------------------------------------------- Captured stderr call -----------------------------------------------------------------------------------------------
/var/tmp/portage/dev-python/pytools-2016.2.6/work/pytools-2016.2.6-python3_4/lib/pytools/diskdict.py:163: UserWarning: DiskDict will be memory-only: a usable version of sqlite was not found.
  warnings.warn("DiskDict will be memory-only: "


In the attached built log, python:2.7 has sqlite enabled and :3.4 has it disabled.
Comment 1 Larry the Git Cow gentoo-dev 2017-09-17 08:43:19 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=748cddd1a3e5f862bf59d3bc774af7e5a5ad579c

commit 748cddd1a3e5f862bf59d3bc774af7e5a5ad579c
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2017-09-17 07:38:12 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2017-09-17 08:43:10 +0000

    dev-python/pytools: Fix missing [sqlite] on Python
    
    Closes: https://bugs.gentoo.org/631174

 .../pytools/{pytools-2014.3.5.ebuild => pytools-2014.3.5-r1.ebuild}      | 1 +
 .../pytools/{pytools-2016.2.6.ebuild => pytools-2016.2.6-r1.ebuild}      | 1 +
 dev-python/pytools/{pytools-2017.4.ebuild => pytools-2017.4-r1.ebuild}   | 1 +
 dev-python/pytools/pytools-9999.ebuild                                   | 1 +
 4 files changed, 4 insertions(+)