Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

[gentoo-user] python 3.6

41 views
Skip to first unread message

Bill Kenworthy

unread,
Jun 27, 2018, 4:50:03 PM6/27/18
to
After installing python 3.6, I now have multiple systems wanting to
depclean it!  Have I missed something? Should I be uninstalling 3.4 and
3.5 which are also present?

bunyip ~ # eselect python list
Available Python interpreters, in order of preference:
  [1]   python3.6
  [2]   python3.5
  [3]   python2.7
  [4]   python3.4
bunyip ~ #

BillK

Ralph Seichter

unread,
Jun 27, 2018, 5:10:03 PM6/27/18
to
On 27.06.18 22:43, Bill Kenworthy wrote:

> After installing python 3.6, I now have multiple systems wanting to
> depclean it! Have I missed something? Should I be uninstalling 3.4
> and 3.5 which are also present?

After you have recompiled all packages that were built with Python 3.4
and 3.5 support and verified that these versions are no longer required,
you can delete them.

-Ralph

John Covici

unread,
Jun 27, 2018, 6:20:03 PM6/27/18
to
This is not working for me -- after doing a world update, there are
still packages which apparently need both 3.4 and 3.5, so I cannot
remove them. I wonder why this would be happening?

--
Your life is like a penny. You're going to lose it. The question is:
How do
you spend it?

John Covici wb2una
cov...@ccs.covici.com

Ralph Seichter

unread,
Jun 27, 2018, 6:40:03 PM6/27/18
to
On 28.06.18 00:16, John Covici wrote:

> after doing a world update, there are still packages which apparently
> need both 3.4 and 3.5, so I cannot remove them.

That sounds like you might still have some packages where the use flags
python_targets_python3_4 and/or python_targets_python3_5 are active. Vim
comes to my mind as an example:

# equery u app-editors/vim
[ Legend : U - final flag setting for installation]
[ : I - package is installed with flag ]
[ Colors : set, unset ]
* Found these USE flags for app-editors/vim-8.0.1298:
U I
( ... )
- - perl : Add optional support/bindings for the Perl language
- - python : Add optional support/bindings for the Python language
- - python_single_target_python2_7 : Build for Python 2.7 only
- - python_single_target_python3_4 : Build for Python 3.4 only
- - python_single_target_python3_5 : Build for Python 3.5 only
+ + python_single_target_python3_6 : Build for Python 3.6 only
+ + python_targets_python2_7 : Build with Python 2.7
- - python_targets_python3_4 : Build with Python 3.4
- - python_targets_python3_5 : Build with Python 3.5
+ + python_targets_python3_6 : Build with Python 3.6
- - racket : Enable support for Scheme using dev-scheme/racket
( ... )

As you can see, vim was built with support for Python 2.7 and 3.6, but
neither 3.4 nor 3.5. Which is the way I want it.

-Ralph

Bill Kenworthy

unread,
Jun 27, 2018, 6:50:03 PM6/27/18
to
On 28/06/18 06:16, John Covici wrote:
> On Wed, 27 Jun 2018 17:04:57 -0400,
> Ralph Seichter wrote:
>> On 27.06.18 22:43, Bill Kenworthy wrote:
>>
>>> After installing python 3.6, I now have multiple systems wanting to
>>> depclean it! Have I missed something? Should I be uninstalling 3.4
>>> and 3.5 which are also present?
>> After you have recompiled all packages that were built with Python 3.4
>> and 3.5 support and verified that these versions are no longer required,
>> you can delete them.
> This is not working for me -- after doing a world update, there are
> still packages which apparently need both 3.4 and 3.5, so I cannot
> remove them. I wonder why this would be happening?
>
Just found that by re-emergeing 3.6.5 it stops trying to remove it - I
can remove 3.4 but not 3.5.5 as its "still in use as the primary python
vrsion" despite 3.6 being [1] in eselect.


BillK

Neil Bothwick

unread,
Jun 27, 2018, 7:30:03 PM6/27/18
to
See the thread "Recent change to python...". The profile change from 3.5
to 3.6 was subsequently reversed. The thread contains the solution.


--
Neil Bothwick

Talk is cheap because supply exceeds demand.

Marc Joliet

unread,
Jun 28, 2018, 3:10:04 AM6/28/18
to
That sounds to me like you merely added 3.6.5 to the world file (by not
passing --oneshot to emerge). For the rest, see Neil's reply.

--
Marc Joliet
--
"People who think they know everything really annoy those of us who know we
don't" - Bjarne Stroustrup
signature.asc
0 new messages