Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909872 - app-emulation/cloud-init-24.4-r3: needs to use PEP517 build (DistutilsNonPEP517Build)
Summary: app-emulation/cloud-init-24.4-r3: needs to use PEP517 build (DistutilsNonPEP5...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Matthew Thode ( prometheanfire )
URL: https://github.com/canonical/cloud-in...
Whiteboard:
Keywords:
Depends on:
Blocks: pep517-porting
  Show dependency tree
 
Reported: 2023-07-08 06:45 UTC by Michał Górny
Modified: 2025-04-09 13:47 UTC (History)
2 users (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-07-08 06:45:17 UTC
This package still uses the legacy eclass code paths.  These paths are deprecated and pose a significant maintenance cost.  Please update the package to use PEP517 build mode.  For more information, please see the Python Guide, particularly; https://projects.gentoo.org/python/guide/migration.html#migrating-to-pep-517-builds
Comment 1 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-07-08 20:40:52 UTC
[Adding this comment en-masse, sorry for the noise, but it's important.)

1. Please take particular care to check file diffs before/after, possibly using `iwdevtools`. Keep a particular eye out for e.g. config files now missing from /etc and instead being in /usr/lib/python*/site-packages, etc.

2. Please make sure to do the migration in a new revision in ~arch, partly because of 1.
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-03-06 15:30:19 UTC
Final ping.  Please note that we will not hesitate to last rite low profile packages over this.
Comment 3 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2024-03-08 04:16:08 UTC
https://github.com/canonical/cloud-init/issues/3986 still isn't cared about upstream it seems
Comment 4 bpholman5 2024-03-08 21:43:46 UTC
Thanks for the updated comment.

Upstream is actively working on PEP517 support for multiple distributions at the moment[1]. Distutils currently installs non-python code to custom path locations in cloud-init's packaging - some additional packaging changes will be required in cloud-init to add PEP517 support.

https://github.com/canonical/cloud-init/issues/5027
Comment 5 Agostino Sarubbo gentoo-dev 2024-07-15 06:43:50 UTC
ci has reproduced this issue with version 24.2 - Updating summary.
Comment 6 bpholman5 2024-07-15 12:56:51 UTC
The plan is to get this fixed before the 24.3 release. See the schedule[1] for release dates.

[1] https://discourse.ubuntu.com/t/2024-cloud-init-release-schedule/41679
Comment 7 Agostino Sarubbo gentoo-dev 2024-12-13 14:19:10 UTC
ci has reproduced this issue with version 24.2-r1 - Updating summary.
Comment 8 Agostino Sarubbo gentoo-dev 2024-12-15 18:45:49 UTC
ci has reproduced this issue with version 24.4 - Updating summary.
Comment 9 Agostino Sarubbo gentoo-dev 2024-12-15 18:46:22 UTC
ci has reproduced this issue with version 24.4-r3 - Updating summary.
Comment 10 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-03-22 20:18:22 UTC
Absolutely final ping before I really start last riting stuff.
Comment 11 Matthew Thode ( prometheanfire ) archtester Gentoo Infrastructure gentoo-dev Security 2025-03-22 20:27:09 UTC
Upstream still doesn't seem to care.
Comment 12 Larry the Git Cow gentoo-dev 2025-03-31 17:06:58 UTC
The bug has been closed via the following commit(s):

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

commit e41c5c3ca4cb468f2fa85f2c48f08f1541b1d32f
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-31 17:04:31 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-31 17:05:45 +0000

    app-emulation/cloud-init: port to python-single-r1
    
    The package isn't suitable for PEP517, as it installs data files and
    it simply happens to be written in Python, rather than intending to be
    imported and so on.
    
    Unfortunately, for the remaining PEP517 holdouts, there's little pressure
    upstream for them to port to a proper build system yet, as while setuptools
    deprecated the `setup.py` entrypoint some time ago, there's no removal
    in sight yet, so the only pressing side is on Gentoo's where we want
    to cleanup distutils-r1's support for that.
    
    It was arguably a mistake to really have these packages use distutils-r1
    in the first place.
    
    The obvious workaround for now is to invoke setup.py manually w/ python-single-r1,
    and punt the question until setuptools removal of the entrypoint looks
    closer (at which time, other distros will be putting pressure on upstreams
    too). Of course, if at the time of such a setuptools change, the package
    is still not fixed, then we'd have to remove it.
    
    (The same issues apply to bug #922160 which isn't fixed by this, but
    hopefully won't be an actual problem until that aforementioned removal
    in setuptools itself of the other bits.)
    
    Bug: https://bugs.gentoo.org/922160
    Closes: https://bugs.gentoo.org/850964
    Closes: https://bugs.gentoo.org/909872
    Closes: https://bugs.gentoo.org/952196
    Signed-off-by: Sam James <sam@gentoo.org>

 app-emulation/cloud-init/cloud-init-24.4-r4.ebuild | 124 +++++++++++++++++++++
 app-emulation/cloud-init/cloud-init-9999.ebuild    |  91 +++++++++------
 2 files changed, 178 insertions(+), 37 deletions(-)
Comment 13 Larry the Git Cow gentoo-dev 2025-04-09 13:47:33 UTC
The bug has been referenced in the following commit(s):

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

commit b373fd5bd3f660997238614eb2ccff1abce54da8
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-04-09 13:43:39 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-04-09 13:46:55 +0000

    app-emulation/cloud-init: drop 24.4-r3
    
    Bug: https://bugs.gentoo.org/909872
    Bug: https://bugs.gentoo.org/952969
    Signed-off-by: Sam James <sam@gentoo.org>

 app-emulation/cloud-init/cloud-init-24.4-r3.ebuild | 107 ---------------------
 1 file changed, 107 deletions(-)