Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 821448 - dev-python/tomli-1.2.1 fails to build with "pkg_resources.DistributionNotFound: The 'tomli>=1.0.0' distribution was not found and is required by the application"
Summary: dev-python/tomli-1.2.1 fails to build with "pkg_resources.DistributionNotFoun...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-11-03 12:10 UTC by Willard Dawson
Modified: 2021-11-04 09:25 UTC (History)
2 users (show)

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


Attachments
Build log (build.log.txt,3.97 KB, text/plain)
2021-11-03 12:10 UTC, Willard Dawson
Details
emerge --info (emerge-info.txt,6.04 KB, text/plain)
2021-11-03 12:10 UTC, Willard Dawson
Details
emerge -pqv (emerge-pqv.txt,114 bytes, text/plain)
2021-11-03 12:10 UTC, Willard Dawson
Details
environment (environment.txt,115.54 KB, text/plain)
2021-11-03 12:11 UTC, Willard Dawson
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Willard Dawson 2021-11-03 12:10:16 UTC
Created attachment 748218 [details]
Build log

See attached build log and related output.
Comment 1 Willard Dawson 2021-11-03 12:10:33 UTC
Created attachment 748221 [details]
emerge --info
Comment 2 Willard Dawson 2021-11-03 12:10:52 UTC
Created attachment 748224 [details]
emerge -pqv
Comment 3 Willard Dawson 2021-11-03 12:11:16 UTC
Created attachment 748227 [details]
environment
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2021-11-04 01:22:48 UTC
Did you emerge -C tomli or something at some point....?
Comment 5 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2021-11-04 08:04:33 UTC
Oh great, now setuptools created a circular dep with tomli, so our hack to avoid the circular dep is broken again.  I suppose we could lower it even more and use distutils... but with it being deprecated it probably makes little sense.

Maybe we just need to install it manually -- but then we'd have to figure out installing egg-info manually, or otherwise pkg_resources will be broken anyway.
Comment 6 Larry the Git Cow gentoo-dev 2021-11-04 09:25:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=64a11922bd011119371ae12d288df277da722a64

commit 64a11922bd011119371ae12d288df277da722a64
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2021-11-04 09:23:18 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2021-11-04 09:25:25 +0000

    dev-python/tomli: Install manually to avoid circular deps
    
    Now that setuptools requires tomli as well, it is no longer possible
    to cleanly bootstrap it.  We could use plain distutils for the time
    being but with its deprecation, this is only a short-term solution.
    Instead, fetch the wheel to get dist-info and install it manually.
    
    Closes: https://bugs.gentoo.org/821448
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/tomli/Manifest              |  1 +
 dev-python/tomli/tomli-1.2.2-r1.ebuild | 36 ++++++++++++++++++++++++++++++++++
 2 files changed, 37 insertions(+)