Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 901215 - [guru] dev-python/pytest-isort-3.1.0 fails to compile: Failing install because of stray top-level files in site-packages
Summary: [guru] dev-python/pytest-isort-3.1.0 fails to compile: Failing install becaus...
Status: RESOLVED FIXED
Alias: None
Product: GURU
Classification: Unclassified
Component: Package issues (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Julien
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-03-14 14:26 UTC by Agostino Sarubbo
Modified: 2023-04-09 10:05 UTC (History)
2 users (show)

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


Attachments
build.log (build.log,53.46 KB, text/plain)
2023-03-14 14:26 UTC, Agostino Sarubbo
Details
Workaround patch (pytest-isort-fix-stray-top-level-3.1.0.patch,369 bytes, patch)
2023-04-03 10:06 UTC, Anton
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2023-03-14 14:26:50 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/pytest-isort-3.1.0 fails to compile.
Discovered on: amd64 (internal ref: guru_tinderbox)
Comment 1 Agostino Sarubbo gentoo-dev 2023-03-14 14:26:52 UTC
Created attachment 857677 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-03-14 14:26:53 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


 *               die "Failing install because of stray top-level files in site-packages";
 *   Failing install because of stray top-level files in site-packages
Comment 3 Anton 2023-04-03 10:06:09 UTC
Created attachment 859464 [details, diff]
Workaround patch

As a workaround, you can put this into
/etc/portage/patches/dev-python/pytest-isort-3.1.0.patch
Comment 4 Julien 2023-04-05 02:38:39 UTC
Thanks for the patch, Anton.
I included it in the 3.1.0-r1 version of the ebuild.
Comment 5 Anton 2023-04-05 09:57:56 UTC
(In reply to Julien from comment #4)
> Thanks for the patch, Anton.
> I included it in the 3.1.0-r1 version of the ebuild.

Oh, no problem, I was just following the instructions from
https://projects.gentoo.org/python/guide/qawarn.html#stray-top-level-files-in-site-packages

Thanks for including it! Ideally we should also file a bug upstream, but I don't know if it's worth your time and effort.
Comment 6 Larry the Git Cow gentoo-dev 2023-04-09 10:05:14 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=d4603df909b3fcaa2305299bfeee66cffdb0a037

commit d4603df909b3fcaa2305299bfeee66cffdb0a037
Author:     Julien Roy <julien@jroy.ca>
AuthorDate: 2023-04-05 02:35:50 +0000
Commit:     Julien Roy <julien@jroy.ca>
CommitDate: 2023-04-05 02:38:00 +0000

    dev-python/pytest-isort: add 3.1.0-r1
    Add patch for stray files
    Credits to Anton (anton.stay.connected@gmail.com)
    for providing the patch on b.g.o
    
    Closes: https://bugs.gentoo.org/901215
    Signed-off-by: Julien Roy <julien@jroy.ca>

 dev-python/pytest-isort/files/stray-files.patch    | 15 +++++++++++
 .../pytest-isort/pytest-isort-3.1.0-r1.ebuild      | 29 ++++++++++++++++++++++
 dev-python/pytest-isort/pytest-isort-3.1.0.ebuild  |  4 +++
 3 files changed, 48 insertions(+)