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
Created attachment 768504 [details] app-emulation:virt-manager-4.0.0:20220402-090413.log
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']."
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(+)