Re: [gentoo-user] Dependencies and PYTHON_TARGETS

2018-04-22 Thread Alec Ten Harmsel
On Sun, Apr 22, 2018 at 11:34:36AM -0700, Ian Zimmerman wrote:
> ...
> 
> This is disappointing.  It looks like I have to do 2 things manually:

Nope, just one.

> * set PYTHON_TARGETS="python2_7 python3_6" - where?  In make.conf?  Will
>   it override the profile setting?

Yes, right in make.conf. It will override the setting in the profile.

> * make sure dev-lang/python:3.6 stays in the world file, even if it is
>   not needed by me directly

No, you shouldn't need any dev-lang/python entries in the world file. I
don't have any in my world file, but still have 2.7 and 3.5 installed on
my system because I have some python programs installed.

Alec



[gentoo-user] Dependencies and PYTHON_TARGETS

2018-04-22 Thread Ian Zimmerman
I am still on the 2013 profile, and I therefore have
PYTHON_TARGETS=python2_7 python3_5.

The other day I had to install python 3.6 for reasons unrelated to
portage or other packages.  I thought I would reduce my overall snake
footprint by removing 3.5 _if_ it wasn't really necessary anymore.  To
that end, I removed the line

dev-lang/python:3.5

from /etc/portage/world, and then I did emerge --depclean.  I was
somewhat surprised when portage charged ahead and removed python 3.5,
but I said ok maybe it automatically changed the TARGETS of the
dependencies and they will be rebuilt next time.  But _no_, checks with
equery and emerge -p show that all python code providing packages still
have python_targets_python3_5 on, and python_targets_python3_6 off.

This is disappointing.  It looks like I have to do 2 things manually:

* set PYTHON_TARGETS="python2_7 python3_6" - where?  In make.conf?  Will
  it override the profile setting?

* make sure dev-lang/python:3.6 stays in the world file, even if it is
  not needed by me directly

Or I am badly confused as I often am ;-)

-- 
Please don't Cc: me privately on mailing lists and Usenet,
if you also post the followup to the list or newsgroup.
To reply privately _only_ on Usenet and on broken lists
which rewrite From, fetch the TXT record for no-use.mooo.com.