Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 930482

Summary: dev-python/cython-3.0.10 fails test: End-to-end coverage_cmd_src_pkg_layout
Product: Gentoo Linux Reporter: Dustin Polke <DuPol>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: DuPol, kingjon3377
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=942426
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: emerge --info
Complete build log

Description Dustin Polke 2024-04-23 07:11:41 UTC
Errors from shard 11:
======================================================================
FAIL: runTest (__main__.EndToEndTest.runTest)
[11] End-to-end coverage_cmd_src_pkg_layout
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/var/tmp/portage/dev-python/cython-3.0.10/work/cython-3.0.10/runtests.py", line 2095, in runTest
    self.assertEqual(0, res, "non-zero exit status, last output was:\n%r\n-- stdout:%s\n-- stderr:%s\n" % (
AssertionError: 0 != 1 : non-zero exit status, last output was:
'/usr/bin/python3.11 -m pip install .'
-- stdout:
-- stderr:error: externally-managed-environment

× This environment is externally managed
╰─> 
    The system-wide Python installation in Gentoo should be maintained
    using the system package manager (e.g. emerge).
    
    If the package in question is not packaged for Gentoo, please
    consider installing it inside a virtual environment, e.g.:
    
    python -m venv /path/to/venv
    . /path/to/venv/bin/activate
    pip install mypackage
    
    To exit the virtual environment, run:
    
    deactivate
    
    The virtual environment is not deleted, and can be re-entered by
    re-sourcing the activate file.

note: If you believe this is a mistake, please contact your Python installation or OS distribution provider. You can override this, at the risk of breaking your Python installation or OS, by passing --break-system-packages.
hint: See PEP 668 for the detailed specification.
Comment 1 Dustin Polke 2024-04-23 07:12:18 UTC
Created attachment 891496 [details]
emerge --info
Comment 2 Dustin Polke 2024-04-23 07:14:19 UTC
Created attachment 891497 [details]
Complete build log
Comment 3 Larry the Git Cow gentoo-dev 2025-04-19 23:31:21 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4e15dabbacc0307c6d5d2090435a774b36446f6a

commit 4e15dabbacc0307c6d5d2090435a774b36446f6a
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-19 23:30:06 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-19 23:30:06 +0000

    dev-python/cython: skip layout test
    
    It needs dev-python/pip and if pip is installed, it'll (often?) fail
    because of 'externally managed'.
    
    Closes: https://bugs.gentoo.org/927995
    Closes: https://bugs.gentoo.org/930482
    Closes: https://bugs.gentoo.org/942426
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-python/cython/cython-3.0.12-r1.ebuild      | 7 +++++++
 dev-python/cython/cython-3.0.12.ebuild         | 7 +++++++
 dev-python/cython/cython-3.1.0_beta1-r1.ebuild | 7 +++++++
 3 files changed, 21 insertions(+)