Contrary to newer versions 6.5.X, 6.3.0 still uses easy_install and places eggs in the top-level. About 6 months ago there were no check for placing files in the top-level directory. * The following unexpected files/directories were found top-level * in the site-packages directory: * * /usr/lib/python3.11/site-packages/LHAPDF-6.3.0-py3.11-linux-x86_64.egg * * This is most likely a bug in the build system. More information * can be found in the Python Guide: * https://projects.gentoo.org/python/guide/qawarn.html#stray-top-level-files-in-site-packages * ERROR: sci-physics/lhapdf-6.3.0-r1::gentoo failed (install phase): * Failing install because of stray top-level files in site-packages * * Call stack: * ebuild.sh, line 136: Called src_install * environment, line 3899: Called distutils-r1_src_install * environment, line 1865: Called _distutils-r1_run_foreach_impl 'distutils-r1_python_install' * environment, line 786: Called distutils-r1_run_phase 'distutils-r1_python_install' * environment, line 1828: Called _distutils-r1_post_python_install * environment, line 668: Called die * The specific snippet of code: * die "Failing install because of stray top-level files in site-packages"; * * If you need support, post the output of `emerge --info '=sci-physics/lhapdf-6.3.0-r1::gentoo'`, * the complete build log and the output of `emerge -pqv '=sci-physics/lhapdf-6.3.0-r1::gentoo'`. * The complete build log is located at '/var/tmp/portage/sci-physics/lhapdf-6.3.0-r1/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/sci-physics/lhapdf-6.3.0-r1/temp/environment'. * Working directory: '/var/tmp/portage/sci-physics/lhapdf-6.3.0-r1/work/LHAPDF-6.3.0/wrappers/python' * S: '/var/tmp/portage/sci-physics/lhapdf-6.3.0-r1/work/LHAPDF-6.3.0' * QA Notice: setuptools warnings detected: * * easy_install command is deprecated.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=934ca520c4d746a03e007b0b9c0fa34d5efbc447 commit 934ca520c4d746a03e007b0b9c0fa34d5efbc447 Author: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de> AuthorDate: 2023-09-01 10:14:18 +0000 Commit: Andrew Ammerlaan <andrewammerlaan@gentoo.org> CommitDate: 2023-09-05 10:35:35 +0000 sci-physics/lhapdf: Fix setup.py plus fix for USE="doc" Closes: https://bugs.gentoo.org/912579 Signed-off-by: Alexander Puck Neuwirth <alexander@neuwirth-informatik.de> Closes: https://github.com/gentoo/gentoo/pull/32548 Signed-off-by: Andrew Ammerlaan <andrewammerlaan@gentoo.org> sci-physics/lhapdf/files/lhapdf-6.3.0-egg.patch | 16 ++++++++++++++++ .../{lhapdf-6.3.0-r1.ebuild => lhapdf-6.3.0-r2.ebuild} | 11 +++++++++-- 2 files changed, 25 insertions(+), 2 deletions(-)