* Re: [gentoo-user] Dependencies and PYTHON_TARGETS
2018-04-22 18:34 [gentoo-user] Dependencies and PYTHON_TARGETS Ian Zimmerman
@ 2018-04-22 15:08 ` Alec Ten Harmsel
2018-04-23 1:44 ` [gentoo-user] " Ian Zimmerman
0 siblings, 1 reply; 12+ messages in thread
From: Alec Ten Harmsel @ 2018-04-22 15:08 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Dependencies and PYTHON_TARGETS
@ 2018-04-22 18:34 Ian Zimmerman
2018-04-22 15:08 ` Alec Ten Harmsel
0 siblings, 1 reply; 12+ messages in thread
From: Ian Zimmerman @ 2018-04-22 18:34 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: Dependencies and PYTHON_TARGETS
2018-04-22 15:08 ` Alec Ten Harmsel
@ 2018-04-23 1:44 ` Ian Zimmerman
2018-04-23 7:31 ` Neil Bothwick
2018-04-23 9:54 ` Alec Ten Harmsel
0 siblings, 2 replies; 12+ messages in thread
From: Ian Zimmerman @ 2018-04-23 1:44 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS
2018-04-23 1:44 ` [gentoo-user] " Ian Zimmerman
@ 2018-04-23 7:31 ` Neil Bothwick
2018-04-23 15:37 ` Ian Zimmerman
2018-04-23 9:54 ` Alec Ten Harmsel
1 sibling, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2018-04-23 7:31 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 516 bytes --]
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
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS
2018-04-23 1:44 ` [gentoo-user] " Ian Zimmerman
2018-04-23 7:31 ` Neil Bothwick
@ 2018-04-23 9:54 ` Alec Ten Harmsel
2018-04-23 15:31 ` Ian Zimmerman
1 sibling, 1 reply; 12+ messages in thread
From: Alec Ten Harmsel @ 2018-04-23 9:54 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: Dependencies and PYTHON_TARGETS
2018-04-23 9:54 ` Alec Ten Harmsel
@ 2018-04-23 15:31 ` Ian Zimmerman
2018-04-23 16:07 ` Peter Humphrey
0 siblings, 1 reply; 12+ messages in thread
From: Ian Zimmerman @ 2018-04-23 15:31 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* [gentoo-user] Re: Dependencies and PYTHON_TARGETS
2018-04-23 7:31 ` Neil Bothwick
@ 2018-04-23 15:37 ` Ian Zimmerman
2018-04-23 19:15 ` Neil Bothwick
0 siblings, 1 reply; 12+ messages in thread
From: Ian Zimmerman @ 2018-04-23 15:37 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS
2018-04-23 15:31 ` Ian Zimmerman
@ 2018-04-23 16:07 ` Peter Humphrey
0 siblings, 0 replies; 12+ messages in thread
From: Peter Humphrey @ 2018-04-23 16:07 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS
2018-04-23 15:37 ` Ian Zimmerman
@ 2018-04-23 19:15 ` Neil Bothwick
2018-04-23 22:10 ` Mike Gilbert
0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2018-04-23 19:15 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 695 bytes --]
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.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS
2018-04-23 19:15 ` Neil Bothwick
@ 2018-04-23 22:10 ` Mike Gilbert
2018-04-23 23:46 ` Neil Bothwick
0 siblings, 1 reply; 12+ messages in thread
From: Mike Gilbert @ 2018-04-23 22:10 UTC (permalink / raw
To: gentoo-user
On Mon, Apr 23, 2018 at 3:15 PM, Neil Bothwick <neil@digimed.co.uk> 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.
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS
2018-04-23 22:10 ` Mike Gilbert
@ 2018-04-23 23:46 ` Neil Bothwick
2018-04-24 6:34 ` Poncho
0 siblings, 1 reply; 12+ messages in thread
From: Neil Bothwick @ 2018-04-23 23:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 387 bytes --]
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.
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 833 bytes --]
^ permalink raw reply [flat|nested] 12+ messages in thread
* Re: [gentoo-user] Re: Dependencies and PYTHON_TARGETS
2018-04-23 23:46 ` Neil Bothwick
@ 2018-04-24 6:34 ` Poncho
0 siblings, 0 replies; 12+ messages in thread
From: Poncho @ 2018-04-24 6:34 UTC (permalink / raw
To: gentoo-user
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
^ permalink raw reply [flat|nested] 12+ messages in thread
end of thread, other threads:[~2018-04-24 6:34 UTC | newest]
Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-04-22 18:34 [gentoo-user] Dependencies and PYTHON_TARGETS Ian Zimmerman
2018-04-22 15:08 ` Alec Ten Harmsel
2018-04-23 1:44 ` [gentoo-user] " Ian Zimmerman
2018-04-23 7:31 ` Neil Bothwick
2018-04-23 15:37 ` Ian Zimmerman
2018-04-23 19:15 ` Neil Bothwick
2018-04-23 22:10 ` Mike Gilbert
2018-04-23 23:46 ` Neil Bothwick
2018-04-24 6:34 ` Poncho
2018-04-23 9:54 ` Alec Ten Harmsel
2018-04-23 15:31 ` Ian Zimmerman
2018-04-23 16:07 ` Peter Humphrey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox