Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 836645 - app-emulation/virt-manager-4.0.0 fails to build with dev-python/setuptools-61.3.0
Summary: app-emulation/virt-manager-4.0.0 fails to build with dev-python/setuptools-61...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Virtualization Team
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks: 836676
  Show dependency tree
 
Reported: 2022-04-02 12:15 UTC by crabbed halo ablution
Modified: 2022-05-04 04:31 UTC (History)
6 users (show)

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


Attachments
app-emulation:virt-manager-4.0.0:20220402-090413.log (app-emulation:virt-manager-4.0.0:20220402-090413.log,2.81 KB, text/plain)
2022-04-02 12:18 UTC, crabbed halo ablution
Details

Note You need to log in before you can comment on or make changes to this bug.
Description crabbed halo ablution 2022-04-02 12:15:55 UTC
Fails at "python3.9 setup.py configure" phase with "error: Multiple top-level packages discovered in a flat-layout: ['ui', 'po', 'man', 'data', 'virtinst', 'virtManager']."


Reproducible: Always

Actual Results:  
>>> Configuring source in /var/tmp/portage/app-emulation/virt-manager-4.0.0/work/virt-manager-4.0.0 ...
python3.9 setup.py configure --default-graphics=spice
error: Multiple top-level packages discovered in a flat-layout: ['ui', 'po', 'man', 'data', 'virtinst', 'virtManager'].

To avoid accidental inclusion of unwanted files or directories,
setuptools will not proceed with this build.

If you are trying to create a single distribution with multiple packages
on purpose, you should not rely on automatic discovery.
Instead, consider the following options:

1. set up custom discovery (`find` directive with `include` or `exclude`)
2. use a `src-layout`
3. explicitly set `py_modules` or `packages` with a list of names

To find more information, look for "package discovery" on setuptools docs.



I've tested with setuptools-60.10.0, emerge successfully finishes.

Looking at https://github.com/pypa/setuptools/issues/3227 this looks to be intended behaviour from setuptools so a patch to virt-manager should be pursued
Comment 1 crabbed halo ablution 2022-04-02 12:18:17 UTC
Created attachment 768504 [details]
app-emulation:virt-manager-4.0.0:20220402-090413.log
Comment 2 Nick Fries 2022-04-10 19:58:02 UTC
I just encountered this exact same issue today with virt-manager:4.0.0. Same exact error with setup tools. I'm also on pythion3.9 which is configured/install as is by gentoo.

> Fails at "python3.9 setup.py configure" phase with "error: Multiple
> top-level packages discovered in a flat-layout: ['ui', 'po', 'man', 'data',
> 'virtinst', 'virtManager']."
Comment 3 Larry the Git Cow gentoo-dev 2022-04-10 20:09:10 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9683b216e6714e01f52cf54e3eda6167012c4b74

commit 9683b216e6714e01f52cf54e3eda6167012c4b74
Author:     Peter Alfredsen <crabbedhaloablution@icloud.com>
AuthorDate: 2022-04-05 20:20:14 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2022-04-10 20:07:10 +0000

    app-emulation/virt-manager: add fix for setuptools-61 b0rkage
    
    See also:  virt-manager/virt-manager#381
    
    Closes: https://bugs.gentoo.org/836645
    Package-Manager: Portage-3.0.30, Repoman-3.0.3
    Signed-off-by: Peter Alfredsen <crabbedhaloablution@icloud.com>
    Closes: https://github.com/gentoo/gentoo/pull/24921
    Signed-off-by: Sam James <sam@gentoo.org>

 .../virt-manager-4.0.0-setuptools-61-fix.patch     | 34 ++++++++++++++++++++++
 .../virt-manager/virt-manager-4.0.0.ebuild         |  1 +
 2 files changed, 35 insertions(+)