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

Bug 745141

Summary: distutils-r1.eclass: pth files are not installed by distutils_install_for_testing
Product: Gentoo Linux Reporter: Louis Sautier (sbraz) <sbraz>
Component: EclassesAssignee: Python Gentoo Team <python>
Status: RESOLVED WONTFIX    
Severity: normal CC: mgorny
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Louis Sautier (sbraz) gentoo-dev 2020-09-28 17:34:09 UTC
Created attachment 662848 [details]
build.log

Hi,
As discussed with mgorny, I have one package with a failing test that relies on pth files being installed: dev-python/coloredlogs-14.0

To reproduce, remove the "--deselect ${PN}/tests.py::ColoredLogsTestCase::test_auto_install" line from the ebuild and make sure the package isn't installed on the local system.

The build log seems to show that the pth file is being copied but it also gets removed later:
copying coloredlogs.pth -> /var/tmp/portage/dev-python/coloredlogs-14.0/work/coloredlogs-14.0-python3_9/bdist.linux-x86_64/egg/
[…]
removing '/var/tmp/portage/dev-python/coloredlogs-14.0/work/coloredlogs-14.0-python3_9/bdist.linux-x86_64/egg' (and everything under it)
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-04-08 09:38:05 UTC
Legacy mode is deprecated, as well as .pth files.