public inbox for gentoo-dev@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-dev] app-editors/vim-7.3 and python[3] USE flags
@ 2010-08-19 17:00 Jim Ramsay
  2010-08-19 17:48 ` Fabian Groffen
                   ` (2 more replies)
  0 siblings, 3 replies; 5+ messages in thread
From: Jim Ramsay @ 2010-08-19 17:00 UTC (permalink / raw
  To: gentoo-dev

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

With the advent of vim-7.3 that I just threw at the tree, we now
have optional python-3 support for this package.  But how to
model this in USE flags?

The upstream ./configure has --enable-pythoninterp and
--enable-python3interp, the former for python2 support (via the
vim ':py' command) and the latter for python3 support (via the
vim ':py3' command).  You can enable one, or the other, or both,
or none.

So, I can see a couple ways of doing this:

Option 1: IUSE="python python3"

Where python -> --enable-pythoninterp
And python3 -> --enable-python3interp

This means if you want python3 support and not python2 support
you would need USE="-python +python3"  A bit confusing, perhaps?
Or if I set the local flag description properly, is it okay?

Option 2: IUSE="python2 python3"

Just get rid of the 'python' USE flag entirely, which is a bit
odd in its own way...

Any other suggestions or comments on these two?

-- 
Jim Ramsay
Gentoo/Linux Developer (rox/fluxbox/gkrellm/vim)

[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]

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

* Re: [gentoo-dev] app-editors/vim-7.3 and python[3] USE flags
  2010-08-19 17:00 [gentoo-dev] app-editors/vim-7.3 and python[3] USE flags Jim Ramsay
@ 2010-08-19 17:48 ` Fabian Groffen
  2010-08-19 19:58 ` [gentoo-dev] " Duncan
  2010-08-20  9:04 ` [gentoo-dev] " Mike Auty
  2 siblings, 0 replies; 5+ messages in thread
From: Fabian Groffen @ 2010-08-19 17:48 UTC (permalink / raw
  To: gentoo-dev

On 19-08-2010 17:00:17 +0000, Jim Ramsay wrote:
> Any other suggestions or comments on these two?

Maybe automagically enable it based on what's installed, kinda like what
python packages do these days?  I guess it translates into: vim now has
SUPPORT_PYTHON_ABIS="2.* 3.*" or something.


-- 
Fabian Groffen
Gentoo on a different level



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

* [gentoo-dev] Re: app-editors/vim-7.3 and python[3] USE flags
  2010-08-19 17:00 [gentoo-dev] app-editors/vim-7.3 and python[3] USE flags Jim Ramsay
  2010-08-19 17:48 ` Fabian Groffen
@ 2010-08-19 19:58 ` Duncan
  2010-08-20  5:56   ` Peter Volkov
  2010-08-20  9:04 ` [gentoo-dev] " Mike Auty
  2 siblings, 1 reply; 5+ messages in thread
From: Duncan @ 2010-08-19 19:58 UTC (permalink / raw
  To: gentoo-dev

Jim Ramsay posted on Thu, 19 Aug 2010 17:00:17 +0000 as excerpted:

> Option 1: IUSE="python python3"
> 
> Where python -> --enable-pythoninterp And python3 ->
> --enable-python3interp
> 
> This means if you want python3 support and not python2 support you would
> need USE="-python +python3"  A bit confusing, perhaps? Or if I set the
> local flag description properly, is it okay?

What about USE=python indicating "maintainer's choice" of version?  You 
could then have either python2 or python3 flags for the other one.

This sounds a bit more like a policy that should be workable on a longer 
and more global scale, and similar to what kde and gtk, among others, have 
done in the past (tho I'm not sure this is exactly right, either, see 
next).

I'd strongly suggest consulting with the kde and gtk projects (others?) 
and coordinating a global python versioned USE flag policy, as there's 
definitely some gotchas in doing it wrong, that they've had to live with 
and ultimately correct as time went on and the preferred version became 
the new one, with the old one eventually deprecated and ultimately removed 
from the tree.  There's definitely some wisdom of experience there that 
can save python based packages some pain in the long term (3+ years out, 
tho it's hard to see a scenario where python2 was actually removed from 
the tree in anything less than 5, if ever, but never say never).

-- 
Duncan - List replies preferred.   No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master."  Richard Stallman




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

* Re: [gentoo-dev] Re: app-editors/vim-7.3 and python[3] USE flags
  2010-08-19 19:58 ` [gentoo-dev] " Duncan
@ 2010-08-20  5:56   ` Peter Volkov
  0 siblings, 0 replies; 5+ messages in thread
From: Peter Volkov @ 2010-08-20  5:56 UTC (permalink / raw
  To: gentoo-dev

В Чтв, 19/08/2010 в 19:58 +0000, Duncan пишет:
> Jim Ramsay posted on Thu, 19 Aug 2010 17:00:17 +0000 as excerpted:
> 
> > Option 1: IUSE="python python3"
> > 
> > Where python -> --enable-pythoninterp And python3 ->
> > --enable-python3interp
> > 
> > This means if you want python3 support and not python2 support you would
> > need USE="-python +python3"  A bit confusing, perhaps? Or if I set the
> > local flag description properly, is it okay?
> 
> What about USE=python indicating "maintainer's choice" of version?

++ But not maintainer's choice, but _upstream's choice_.

> You could then have either python2 or python3 flags for the other one.

Yup. This allows people to have best python support if they don't care
about version and those who care have USE flag for additional feature.

-- 
Peter.




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

* Re: [gentoo-dev] app-editors/vim-7.3 and python[3] USE flags
  2010-08-19 17:00 [gentoo-dev] app-editors/vim-7.3 and python[3] USE flags Jim Ramsay
  2010-08-19 17:48 ` Fabian Groffen
  2010-08-19 19:58 ` [gentoo-dev] " Duncan
@ 2010-08-20  9:04 ` Mike Auty
  2 siblings, 0 replies; 5+ messages in thread
From: Mike Auty @ 2010-08-20  9:04 UTC (permalink / raw
  To: gentoo-dev; +Cc: Jim Ramsay

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I'd thought that the new eclass was designed to ensure that if you asked
for USE="python" it was built for as many different python ABIs as was
installed on your system (so python2 and python3 if they're both
installed).  I believe it's possible to ask the eclass which ABIs are
installed, and ask for the either in-use or highest versions of those.

If they're not mutually exclusive, and if vim won't break if they go
away, then why should the user choose which ones to enable and disable?
 Why not just get them to say whether they want python support or not,
and try to accomodate them for as many python versions as
installed/possible.

I realize there may be some controversy surrounding the new python
eclass, however that does seem to be how most python packages work these
days, so I'd say it's better to keep everything working the same way.

Mike  5:)
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)

iEYEARECAAYFAkxuRQEACgkQu7rWomwgFXrpJQCgiMBnn9bWdbwtE4xcFsNmmKkV
IV0An3FC4w3eImueLxZ7bwC3tLkv8+YC
=uCL+
-----END PGP SIGNATURE-----



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

end of thread, other threads:[~2010-08-20  9:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-08-19 17:00 [gentoo-dev] app-editors/vim-7.3 and python[3] USE flags Jim Ramsay
2010-08-19 17:48 ` Fabian Groffen
2010-08-19 19:58 ` [gentoo-dev] " Duncan
2010-08-20  5:56   ` Peter Volkov
2010-08-20  9:04 ` [gentoo-dev] " Mike Auty

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