Gentoo Logo
Gentoo Spaceship




Note: Due to technical difficulties, the Archives are currently not up to date. GMANE provides an alternative service for most mailing lists.
c.f. bug 424647
List Archive: gentoo-python
Navigation:
Lists: gentoo-python: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-python <gentoo-python@g.o>
From: "Nikolaj Sjujskij" <sterkrig@...>
Subject: Re: python-distutils.eclass vs. python.eclass + distutils.eclass
Date: Fri, 01 Jun 2012 16:42:37 +0400
Den 2012-05-26 17:33:45 skrev Mike Gilbert <floppym@g.o>:

>>  Let's take a "stable" user who updates (`emerge --update --deep  
>> --newuse
>> @world`) his/her system regularly.
>> Python 3.3 is released, added to Portage tree and eventually unmasked.
>> PYTHON_TARGETS variable is changed to include 3.3. And suddenly `emerge
>> --newuse @world` on stable system suggests rebuilding of every package  
>> using
>> new eclass, because new (though disabled) USE-flags was added. And when
>> Python 3.3 is keyworded stable, hence bringing new default  
>> PYTHON_TARGETS,
>> user should now rebuild those packages once more, but now, at least, not
>> uselessly.
> This is why I do my world updates with --changed-use instead of
> --newuse. The package manager already has the ability to deal with
> such scenarios intelligently, you just have to let it.
  Point taken, but --newuse is still "recommended" option (i.e.,  
`--depclean` suggests it and Handbook describes it as well). Whereas  
'--changed-use' is more or less "spoken lore" among users.

> I did not speak up in the previous thread, but here are some of the
> advantages to a use flag based approach (PYTHON_TARGETS):
> ...
  Agreed.

> Here is how I justify the current default value of PYTHON_TARGETS: Due
> to past decisions, python3.2 is installed by default on all amd64 and
> x86 systems, so having python3_2 enabled by default makes sense.
> However, there are many things do not work in python 3, so the
> python2_7 target is a necessity.
  Yes, I understand that. It is really the most sensible default in the  
circumstances.
Still, it is a bit clumsy with new installs. It'd be nice if stage3 had  
PYTHON_TARGETS="python32" (since it's the only Python interpreter  
installed), while profile had current default.
Of course, news item is a must for that kind of thing. Describing new  
variable, suggesting `--changed-use` instead of `--newuse` etc.


References:
python-distutils.eclass vs. python.eclass + distutils.eclass
-- Maxim Koltsov
Re: python-distutils.eclass vs. python.eclass + distutils.eclass
-- Dirkjan Ochtman
Re: python-distutils.eclass vs. python.eclass + distutils.eclass
-- Nikolaj Sjujskij
Re: python-distutils.eclass vs. python.eclass + distutils.eclass
-- Mike Gilbert
Navigation:
Lists: gentoo-python: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
Re: python-distutils.eclass vs. python.eclass + distutils.eclass
Next by thread:
Do we need another 'new' python eclass besides python-distutils-ng?
Previous by date:
Re: python-distutils.eclass vs. python.eclass + distutils.eclass
Next by date:
New eclass: obsoleting old python versions


Updated Jun 29, 2012

Summary: Archive of the gentoo-python mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.