Summary: | =dev-python/testtools-1.2.0: build error—ImportError: No module named 'unittest2' | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Alex Brandt (RETIRED) <alunduil> |
Component: | [OLD] Development | Assignee: | bazaar+obsolete |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | openstack, python, reuben-gentoo-bugzilla |
Priority: | Normal | ||
Version: | unspecified | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- |
Description
Alex Brandt (RETIRED)
2014-12-16 16:20:51 UTC
Same issue... puting dev-python/unittest2 in to depend fixes issue... 16 Dec 2014; Ian Delaney <idella4@gentoo.org> testtools-1.1.0.ebuild, testtools-1.2.0.ebuild: add new dep, rm unneeded prepare phase. closes bug #532720 I don't think this fix currently in portage is quite right. I am still seeing this same build failure caused by the lack of unittest2 installation. I am compiling with the following USE flags: [ebuild R ] dev-python/testtools-1.2.0 USE="-doc {-test}" PYTHON_TARGETS="python2_7 -pypy -python3_3 -python3_4" 0 KiB ie I'm not setting -test, but by the looks of the ebuild the dependency is only pulled in if this test flag is set. I think the dependency should really be met regardless of the status of -test ? Reopening as it still fails with python:3.4 and doesn't get pulled in by the python3_4 USE flag. I mean, unittest2 doesn't get pulled in by python3_4 USE flag. Looks like this should NOT be conditional on testing. It's a build time requirement regardless of testing. (In reply to Ian Delaney from comment #2) Why wasn't this properly assigned? (In reply to Alex Brandt from comment #6) > Looks like this should NOT be conditional on testing. It's a build time > requirement regardless of testing. Actually, it looks like a *runtime* requirement as well. install_requires=[ 'extras', # 'mimeparse' has not been uploaded by the maintainer with Python3 compat # but someone kindly uploaded a fixed version as 'python-mimeparse'. 'python-mimeparse', 'unittest2', ], + 19 Dec 2014; Mike Gilbert <floppym@gentoo.org> testtools-1.2.0.ebuild: + Unconditionally depend on unittest2 at run/build time, bug 532720. |