Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Python 2_7 in EOL
View unanswered posts
View posts from last 24 hours
View posts from last 7 days

 
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian)
View previous topic :: View next topic  
Author Message
saverik
Guru
Guru


Joined: 18 Oct 2008
Posts: 300

PostPosted: Fri Feb 07, 2020 3:35 pm    Post subject: Python 2_7 in EOL Reply with quote

ciao,

mi sembra di capire che bisogna passare a python 3_ ...
visto che devo aggiornare come mi comporto?

Nel mio make.conf come modifico PYTHON_TARGETS="python2_7 python3_6"?

Code:
CHOST="x86_64-pc-linux-gnu"
CFLAGS="-march=skylake -O2 -pipe"
CXXFLAGS="${CFLAGS}"
CPU_FLAGS_X86="aes avx avx2 f16c fma3 mmx mmxext pclmul popcnt sse sse2 sse3 sse4_1 sse4_2 ssse3"
######
ACCEPT_LICENSE="*"
######
PORTAGE_TMPDIR=/var/tmp
PORTDIR=/usr/portage
DISTDIR=/usr/portage/distfiles
PKGDIR=/usr/portage/packages
PORT_LOGDIR="/var/log/portage"



###########
VIDEO_CARDS="intel i965"
LINGUAS="it"
L10N="it"
INPUT_DEVICES="mouse libinput synaptics"
MAKEOPTS="-j3"
#########
AUTOCLEAN="yes"
#########
PYTHON_TARGETS="python2_7 python3_6"
PYTHON_SINGLE_TARGET="python3_6"
XFCE_PLUGINS="brightness clock trash"
XDG_CACHE_HOME="/tmp/.cache"
#############
USE="X -kde -qt5 -gnome alsa bluetooth gtk3 mtp multilib dhclient pulseaudio networkmanager"
GRUB_PLATFORMS="emu efi-32 efi-64 pc"
#ACCEPT_KEYWORDS="~amd64"
SANE_BACKENDS="hp"

_________________
Elitebook G840_G3 cpu i5-6300u ,16GbRam,ToshibaNvme512Gb
Linux= Gentoo64bit+xfce4+LightDm+Openrc
Back to top
View user's profile Send private message
fedeliallalinea
Bodhisattva
Bodhisattva


Joined: 08 Mar 2003
Posts: 24202
Location: here

PostPosted: Fri Feb 07, 2020 3:58 pm    Post subject: Reply with quote

In se sarebbe meglio non mettere nulla nel make.conf visto che PYTHON_TARGETS e PYTHON_SINGLE_TARGET sono gestiti dal profilo.
Quindi il mio consiglio e' di commentarli e provare a dare il comando emerge -UD @world, forse dovrai aggiungere qualcosa in package.use per abilitare python2_7 a quei pacchetti che ancora non sono passati a python3
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
sabayonino
l33t
l33t


Joined: 03 Jan 2012
Posts: 798

PostPosted: Sun Feb 09, 2020 11:52 am    Post subject: Reply with quote

https://gentoo.org/support/news-items/2020-02-07-python-2-7-eol.html

Quote:
eselect news read
2020-02-07-python-2-7-eol
Title Python 2.7 went EOL
Author Michał Górny <mgorny@gentoo.org>
Posted 2020-02-07
Revision 1

Python 2.7 has reached its end-of-life by 2019-12-31. Python package
upstreams have started removing Python 2 compatibility code from their
packages more aggressively. This includes common dependencies such as
dev-python/pytest, dev-python/setuptools and dev-python/sphinx. While
we realize that many packages are still dependent on Python 2, providing
full support for it exceeds our maintenance capabilities.

Upstream is planning to make one more release of dev-lang/python:2.7
in April 2020. We are going to continue maintaining and patching
the interpreter for as long as it is feasible, most likely even after
all Python 2 packages are gone from Gentoo.

At the same time, we are actively working towards switching
the distribution to Python 3. Whenever possible, we are removing
Python 2 support from packages. It will remain available for
the packages missing Python 3 compatibility and their dependencies
for some more time. However, packages that have little chances of being
ported will eventually be removed.

If you are still using Python 2 for your projects, we strongly recommend
you to migrate away. For the time being, it is preferable to use
dev-python/virtualenv or a similar solution rather than ebuilds,
to install the dependencies for your projects locally.

Regular Gentoo systems will be migrated off Python 2 gracefully. It may
be necessary to use --changed-deps or a similar option during system
upgrades whenever they become blocked by Python 2 packages installed
earlier.

If you wish to remove Python 2.7 entirely sooner, you can try removing
python2_7 from PYTHON_TARGETS. However, this will require adding
explicit package.use entries if some of the installed packages still
require Python 2. An example package.use entry follows:

# disable py2.7 without altering the other flags
*/* PYTHON_TARGETS: -python2_7
# enable py2.7 for setuptools
dev-python/setuptools PYTHON_TARGETS: python2_7
# switch a single-impl package to 2.7
dev-embedded/libftdi PYTHON_TARGETS: python2_7
dev-embedded/libftdi PYTHON_SINGLE_TARGET: -* python2_7

Note that package.use entries are not necessary for packages that
support one implementation only (i.e. do not support Python 3 at all).

_________________
BOINC ed il calcolo distribuito

My LRecoverySystem Repo
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Forum italiano (Italian) All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum