Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS

2018-04-23 Thread Poncho
On 24.04.2018 01:46, Neil Bothwick wrote:
> On Mon, 23 Apr 2018 18:10:08 -0400, Mike Gilbert wrote:
> 
>> You are incorrect; PYTHON_TARGETS is never calculated based on the
>> versions of python you have installed.
> 
> Then how is it derived when not defined in make.conf? Is it set in the
> profiles?
> 
> 

yes, it's set in profiles/base/make.defaults

https://gitweb.gentoo.org/repo/gentoo.git/tree/profiles/base/make.defaults#n110



Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS

2018-04-23 Thread Neil Bothwick
On Mon, 23 Apr 2018 18:10:08 -0400, Mike Gilbert wrote:

> You are incorrect; PYTHON_TARGETS is never calculated based on the
> versions of python you have installed.

Then how is it derived when not defined in make.conf? Is it set in the
profiles?


-- 
Neil Bothwick

The trouble with doing something right the first time is that nobody
appreciates how difficult it was.


pgpHmA_z7LhRB.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS

2018-04-23 Thread Mike Gilbert
On Mon, Apr 23, 2018 at 3:15 PM, Neil Bothwick  wrote:
> On Mon, 23 Apr 2018 08:37:42 -0700, Ian Zimmerman wrote:
>
>> > > Why did portage remove my python-3.5?
>> >
>> > Because nothing that depends on it isn't also satisfied by
>> > python-3.6?
>>
>> But doesn't the PYTHON_TARGETS with which a package is built create a
>> strict dependency on those pythons?  If native code extensions are
>> present, the compiled code won't in general be compatible with other
>> versions.
>
> AIUI PYTHON_TARGETS determines which python version extension modules are
> installed for. If you don't set PYTHON_TARGETS explicitly, portage sets
> it according to the versions you have installed.
>

You are incorrect; PYTHON_TARGETS is never calculated based on the
versions of python you have installed.



Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS

2018-04-23 Thread Neil Bothwick
On Mon, 23 Apr 2018 08:37:42 -0700, Ian Zimmerman wrote:

> > > Why did portage remove my python-3.5?  
> > 
> > Because nothing that depends on it isn't also satisfied by
> > python-3.6?  
> 
> But doesn't the PYTHON_TARGETS with which a package is built create a
> strict dependency on those pythons?  If native code extensions are
> present, the compiled code won't in general be compatible with other
> versions.

AIUI PYTHON_TARGETS determines which python version extension modules are
installed for. If you don't set PYTHON_TARGETS explicitly, portage sets
it according to the versions you have installed.


-- 
Neil Bothwick

Plagarism prohibited. Derive carefully.


pgptTZzJ4Wddp.pgp
Description: OpenPGP digital signature


Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS

2018-04-23 Thread Peter Humphrey
On Monday, 23 April 2018 16:31:39 BST Ian Zimmerman wrote:

> I think before digging further, I should eliminate any guessing about
> what PYTHON_TARGETS is actually set to.  How can I list the environment
> portage sees, from all sources (profile, make.conf and whatever else)?

Doesn't "emerge --info | grep PYTHON_TARGETS" work for you? Here I get 
PYTHON_TARGETS="python2_7 python3_5".

-- 
Regards,
Peter.






[gentoo-user] Re: Dependencies and PYTHON_TARGETS

2018-04-23 Thread Ian Zimmerman
On 2018-04-23 08:31, Neil Bothwick wrote:

> > Why did portage remove my python-3.5?
> 
> Because nothing that depends on it isn't also satisfied by python-3.6?

But doesn't the PYTHON_TARGETS with which a package is built create a
strict dependency on those pythons?  If native code extensions are
present, the compiled code won't in general be compatible with other
versions.

-- 
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.



[gentoo-user] Re: Dependencies and PYTHON_TARGETS

2018-04-23 Thread Ian Zimmerman
On 2018-04-23 05:54, Alec Ten Harmsel wrote:

> > But do you ever --depclean?  Why did portage remove my python-2.5?
> 
> Yes, after every world update. I'm not sure why python-3.5 was removed.

Of course I meant python 3.5.  Thanks for reading my mind ;-)

> Before you set PYTHON_TARGETS in make.conf, had you run an `emerge
> --sync' in a while? It's possible the default PYTHON_TARGETS from your
> profile did not include python-3.5, so --depclean would have removed
> it.

In fact I never even changed PYTHON_TARGETS.  All I did was, after
--sync and rebuild but before --depclean, I removed the line from world.

I think before digging further, I should eliminate any guessing about
what PYTHON_TARGETS is actually set to.  How can I list the environment
portage sees, from all sources (profile, make.conf and whatever else)?

-- 
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.



Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS

2018-04-23 Thread Alec Ten Harmsel
On Sun, Apr 22, 2018 at 06:44:03PM -0700, Ian Zimmerman wrote:
> On 2018-04-22 15:08, Alec Ten Harmsel wrote:
> 
> > > * 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.
> 
> But do you ever --depclean?  Why did portage remove my python-2.5?

Yes, after every world update. I'm not sure why python-3.5 was removed.

Before you set PYTHON_TARGETS in make.conf, had you run an `emerge
--sync' in a while? It's possible the default PYTHON_TARGETS from your
profile did not include python-3.5, so --depclean would have removed it.

Alec



Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS

2018-04-23 Thread Neil Bothwick
On Sun, 22 Apr 2018 18:44:03 -0700, Ian Zimmerman wrote:

> > 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.  
> 
> But do you ever --depclean?  Why did portage remove my python-2.5?

Because nothing that depends on it isn't also satisfied by python-3.6?


-- 
Neil Bothwick

SITCOM: Single Income, Two Children, Oppressive Mortgage


pgpYJhaervynS.pgp
Description: OpenPGP digital signature


[gentoo-user] Re: Dependencies and PYTHON_TARGETS

2018-04-22 Thread Ian Zimmerman
On 2018-04-22 15:08, Alec Ten Harmsel wrote:

> > * 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.

But do you ever --depclean?  Why did portage remove my python-2.5?

-- 
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.