Re: [gentoo-dev] [PATCH] use.desc: Make `native-extensions` flag global

2023-11-05 Thread Michał Górny
On Sun, 2023-11-05 at 01:08 -0500, Oskari Pirhonen wrote:
> On Sun, Nov 05, 2023 at 06:42:35 +0100, Michał Górny wrote:
> > Make the `native-extensions` flag global.  It is used in 15 Python
> > packages to enable building optional C extensions, though the global
> > description also allows for other "native" and "pure" languages.
> > 
> > In 9 cases, the flag description explicitly mentions "speedups", so this
> > is the primary case used in global description.  There is one case
> > of the extension providing extra features, and the remaining cases
> > do not explain its role.
> > 
> > Signed-off-by: Michał Górny 
> > ---
> >  profiles/use.desc | 1 +
> >  1 file changed, 1 insertion(+)
> > 
> > diff --git a/profiles/use.desc b/profiles/use.desc
> > index d8f97958e900..01915ae78918 100644
> > --- a/profiles/use.desc
> > +++ b/profiles/use.desc
> > @@ -212,6 +212,7 @@ musicbrainz - Lookup audio metadata using MusicBrainz 
> > community service (musicbr
> >  mysql - Add mySQL Database support
> >  mysqli - Add support for the improved mySQL libraries
> >  nas - Add support for network audio sound
> > +native-extensions - Build native (C, Rust) extensions in additional to 
> > pure (e.g. Python) code (usually speedups)
> 
> I'd say "(e.g. C, Rust)", similarly to what you did later, so that
> people don't think it means only C or Rust extensions get built.

Thanks, added that.

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] [PATCH] use.desc: Make `native-extensions` flag global

2023-11-05 Thread Eli Schwartz
On 11/5/23 1:42 AM, Michał Górny wrote:
> Make the `native-extensions` flag global.  It is used in 15 Python
> packages to enable building optional C extensions, though the global
> description also allows for other "native" and "pure" languages.
> 
> In 9 cases, the flag description explicitly mentions "speedups", so this
> is the primary case used in global description.  There is one case
> of the extension providing extra features, and the remaining cases
> do not explain its role.


The USE flag's name inherently feels like something aligned with
building speedups, so why not dedicate it to that purpose? It feels
confusing to have a global USE that does different things for different
packages.

It sounds like just renaming a single USE flag -- peewee from
"native-extensions" to "sqlite-ext" -- would be enough to allow nicer
semantics here.


-- 
Eli Schwartz




[gentoo-dev] Last rites: dev-python/setuptools_scm_git_archive

2023-11-05 Thread Michał Górny
# Michał Górny  (2023-11-05)
# Discontinued in favor of built-in support in setuptools-scm-7.
# No revdeps left.
# Removal on 2023-12-05.  Bug #916904.
dev-python/setuptools_scm_git_archive

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part


[gentoo-dev] Last rites: dev-python/pytest-subtesthack

2023-11-05 Thread Michał Górny
# Michał Górny  (2023-11-05)
# Discontinued upstream.  Fails tests with modern pytest.
# No revdeps left.
# Removal on 2023-12-05.  Bug #906834.
dev-python/pytest-subtesthack

-- 
Best regards,
Michał Górny



signature.asc
Description: This is a digitally signed message part