Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 891959 - distutils-r1.eclass: esetup.py refuses to run in "pure" pyproject.toml projects
Summary: distutils-r1.eclass: esetup.py refuses to run in "pure" pyproject.toml projects
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-01-24 17:27 UTC by Michał Górny
Modified: 2023-02-07 14:31 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-01-24 17:27:18 UTC
* ERROR: dev-python/aesara-2.8.10::gentoo failed (compile phase):
 *   esetup.py: setup.py nor setup.cfg not found

This is quite a problem, given that the eclass itself calls it to build_ext.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2023-01-31 07:25:50 UTC
I'm going to tackle it today, along with bumping minimal Python versions.

I'm mostly wondering whether we should try to verify setuptools-in-pyproject.toml or just drop the check.  The original rationale was that calling setuptools on an "empty" package produces an empty wheel -- but that shouldn't be much of a problem given that we do stuff via PEP517 backend anyway.  Perhaps we should limit the check to pre-PEP517 packages.
Comment 2 Larry the Git Cow gentoo-dev 2023-02-07 14:31:17 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=40c3f5de5bc7bb569da1a65da80bb30556fbfc9e

commit 40c3f5de5bc7bb569da1a65da80bb30556fbfc9e
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2023-01-31 11:29:12 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2023-02-07 14:24:54 +0000

    distutils-r1.eclass: esetup.py, omit setup.cfg check in PEP517 mode
    
    Closes: https://bugs.gentoo.org/891959
    Closes: https://github.com/gentoo/gentoo/pull/29354
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 eclass/distutils-r1.eclass | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)