Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 909985 - media-gfx/mypaint: needs to use PEP517 build (DistutilsNonPEP517Build)
Summary: media-gfx/mypaint: needs to use PEP517 build (DistutilsNonPEP517Build)
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: Normal normal
Assignee: Sam James
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: pep517-porting 927525
  Show dependency tree
 
Reported: 2023-07-08 06:57 UTC by Michał Górny
Modified: 2025-03-31 19:13 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-07-08 06:57:02 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:53 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 Arthur Zamarin archtester Gentoo Infrastructure gentoo-dev Security 2024-03-06 19:47:58 UTC
performed today a try to use pep517 for this ebuild. A lot of files are not installed now - so seems like a sad state :(
Comment 4 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 5 Larry the Git Cow gentoo-dev 2025-03-31 16:33:02 UTC
The bug has been closed via the following commit(s):

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

commit 5a04eede34734659c7bf34fae34a1de4bb15babf
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2025-03-31 16:31:11 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-03-31 16:31:52 +0000

    media-gfx/mypaint: 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.
    
    (In this case, upstream are preparing a port to Meson.)
    
    Bug: https://bugs.gentoo.org/836232
    Closes: https://bugs.gentoo.org/909985
    Closes: https://bugs.gentoo.org/927525
    Signed-off-by: Sam James <sam@gentoo.org>

 media-gfx/mypaint/mypaint-2.0.1-r4.ebuild | 88 +++++++++++++++++++++++++++++++
 1 file changed, 88 insertions(+)