Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 928447 - dev-python/virtualenv-20.25.1 Wheel build failed
Summary: dev-python/virtualenv-20.25.1 Wheel build failed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-04-02 15:23 UTC by Pedro Ferreira
Modified: 2024-04-05 15:44 UTC (History)
3 users (show)

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


Attachments
emerge --info (emerge.info,6.98 KB, text/plain)
2024-04-05 09:54 UTC, Pedro Ferreira
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Pedro Ferreira 2024-04-02 15:23:39 UTC
Possibly similar to 909151.

 * ERROR: dev-python/virtualenv-20.25.1::gentoo failed (compile phase):
 *   Wheel build failed
 *
 * Call stack:
 *     ebuild.sh, line  136:  Called src_compile
 *   environment, line 4050:  Called distutils-r1_src_compile
 *   environment, line 1968:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  796:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3650:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3156:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3154:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 1284:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line 1950:  Called distutils-r1_python_compile
 *   environment, line 1766:  Called distutils_pep517_install '/var/tmp/portage/dev-python/virtualenv-20.25.1/work/virtualenv-20.25.1-python3_11/install'
 *   environment, line 2314:  Called die
 * The specific snippet of code:
 *       [[ -n ${wheel} ]] || die "No wheel name returned";



I think this might be because of an incorrect dependency package version. If I
emerge -1 dev-python/trove-classifiers
which upgrades:
1712069854:  >>> unmerge success: dev-python/trove-classifiers-2023.5.24
1712069862:  === (1 of 1) Post-Build Cleaning (dev-python/trove-classifiers-2024.3.3::/usr/portage/dev-python/trove-classifiers/trove-classifiers-2024.3.3.ebuild)
1712069862:  ::: completed emerge (1 of 1) dev-python/trove-classifiers-2024.3.3 to /

then the emerge of virtualenv goes without an issue.

John Reitan helped me with this and mentioned that hatchling  says
dev-python/trove-classifiers[${PYTHON_USEDEP}]
which might be a problem if a more recent version of the package is required.
Comment 1 John Einar Reitan 2024-04-02 16:43:04 UTC
Important to add is that we found 

ValueError: Unknown classifier in field `project.classifiers`: Programming Language :: Python :: 3.13

which is missing from dev-python/trove-classifiers-2023.5.24, which he had.

So the issue was that that dev-python/hatchling only specifies dev-python/trove-classifiers[${PYTHON_USEDEP}] and not any specific minimum version needed.

Any 3.13 capable python package would fail with dev-python/trove-classifiers-2023.5.24 installed, but portage would miss that dependency as no version specified.
Comment 2 Mike Gilbert gentoo-dev 2024-04-03 02:59:19 UTC
Please provide emerge --info and a attach the build log.
Comment 3 Mike Gilbert gentoo-dev 2024-04-04 20:49:38 UTC
Please change the status back to UNCONFIRMED once the requested information has been provided.
Comment 4 Pedro Ferreira 2024-04-05 09:54:03 UTC
Created attachment 889514 [details]
emerge --info
Comment 5 Pedro Ferreira 2024-04-05 09:55:13 UTC
I no longer have the build log as I have since successfully emerged the package after manually updating the dependency.
Comment 6 Mike Gilbert gentoo-dev 2024-04-05 14:08:28 UTC
Next time save the build log please.
Comment 7 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-04-05 15:11:16 UTC
Sigh, I really need to ask upstream to fix hatchling not to be such a nuisance.
Comment 8 Larry the Git Cow gentoo-dev 2024-04-05 15:44:51 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=841e5a0997cd00cae7ebd8573db36561160e7f3f

commit 841e5a0997cd00cae7ebd8573db36561160e7f3f
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-04-05 15:44:24 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-04-05 15:44:24 +0000

    dev-python/hatchling: Depend on the newest trove-classifiers
    
    Closes: https://bugs.gentoo.org/928447
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../{hatchling-1.21.1.ebuild => hatchling-1.21.1-r1.ebuild}        | 7 ++++++-
 .../{hatchling-1.22.5.ebuild => hatchling-1.22.5-r1.ebuild}        | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)