public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] [PATCH] use.desc: Make `native-extensions` flag global
@ 2023-11-05  5:42 Michał Górny
  2023-11-05  6:08 ` Oskari Pirhonen
  2023-11-05 13:44 ` Eli Schwartz
  0 siblings, 2 replies; 4+ messages in thread
From: Michał Górny @ 2023-11-05  5:42 UTC (permalink / raw)
  To: gentoo-dev; +Cc: Michał Górny

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 <mgorny@gentoo.org>
---
 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)
 ncurses - Add ncurses support (console display library)
 neXt - Enable neXt toolkit
 netcdf - Enable NetCDF data format support
-- 
2.42.1



^ permalink raw reply related	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] [PATCH] use.desc: Make `native-extensions` flag global
  2023-11-05  5:42 [gentoo-dev] [PATCH] use.desc: Make `native-extensions` flag global Michał Górny
@ 2023-11-05  6:08 ` Oskari Pirhonen
  2023-11-05 12:00   ` Michał Górny
  2023-11-05 13:44 ` Eli Schwartz
  1 sibling, 1 reply; 4+ messages in thread
From: Oskari Pirhonen @ 2023-11-05  6:08 UTC (permalink / raw)
  To: Michał Górny; +Cc: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1316 bytes --]

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 <mgorny@gentoo.org>
> ---
>  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.

- Oskari

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] [PATCH] use.desc: Make `native-extensions` flag global
  2023-11-05  6:08 ` Oskari Pirhonen
@ 2023-11-05 12:00   ` Michał Górny
  0 siblings, 0 replies; 4+ messages in thread
From: Michał Górny @ 2023-11-05 12:00 UTC (permalink / raw)
  To: gentoo-dev

[-- Attachment #1: Type: text/plain, Size: 1480 bytes --]

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 <mgorny@gentoo.org>
> > ---
> >  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


[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 512 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: [gentoo-dev] [PATCH] use.desc: Make `native-extensions` flag global
  2023-11-05  5:42 [gentoo-dev] [PATCH] use.desc: Make `native-extensions` flag global Michał Górny
  2023-11-05  6:08 ` Oskari Pirhonen
@ 2023-11-05 13:44 ` Eli Schwartz
  1 sibling, 0 replies; 4+ messages in thread
From: Eli Schwartz @ 2023-11-05 13:44 UTC (permalink / raw)
  To: gentoo-dev

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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-11-05 13:44 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-11-05  5:42 [gentoo-dev] [PATCH] use.desc: Make `native-extensions` flag global Michał Górny
2023-11-05  6:08 ` Oskari Pirhonen
2023-11-05 12:00   ` Michał Górny
2023-11-05 13:44 ` Eli Schwartz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox