* [gentoo-dev] [PATCH news] 2020-02-06-python-2-7-eol: news item for py2.7 EOL
@ 2020-02-05 21:20 Michał Górny
2020-02-05 21:34 ` Pacho Ramos
0 siblings, 1 reply; 3+ messages in thread
From: Michał Górny @ 2020-02-05 21:20 UTC (permalink / raw
To: gentoo-dev; +Cc: Michał Górny
Signed-off-by: Michał Górny <mgorny@gentoo.org>
---
.../2020-02-06-python-2-7-eol.en.txt | 51 +++++++++++++++++++
1 file changed, 51 insertions(+)
create mode 100644 2020-02-06-python-2-7-eol/2020-02-06-python-2-7-eol.en.txt
diff --git a/2020-02-06-python-2-7-eol/2020-02-06-python-2-7-eol.en.txt b/2020-02-06-python-2-7-eol/2020-02-06-python-2-7-eol.en.txt
new file mode 100644
index 0000000..6adc04e
--- /dev/null
+++ b/2020-02-06-python-2-7-eol/2020-02-06-python-2-7-eol.en.txt
@@ -0,0 +1,51 @@
+Title: Python 2.7 went EOL
+Author: Michał Górny <mgorny@gentoo.org>
+Posted: 2020-02-06
+Revision: 1
+News-Item-Format: 2.0
+Display-If-Installed: dev-lang/python:2.7
+
+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).
--
2.25.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] [PATCH news] 2020-02-06-python-2-7-eol: news item for py2.7 EOL
2020-02-05 21:20 [gentoo-dev] [PATCH news] 2020-02-06-python-2-7-eol: news item for py2.7 EOL Michał Górny
@ 2020-02-05 21:34 ` Pacho Ramos
2020-02-06 21:24 ` Michał Górny
0 siblings, 1 reply; 3+ messages in thread
From: Pacho Ramos @ 2020-02-05 21:34 UTC (permalink / raw
To: gentoo-dev; +Cc: Michał Górny
[-- Attachment #1: Type: text/plain, Size: 823 bytes --]
El mié, 05-02-2020 a las 22:20 +0100, Michał Górny escribió:
> [...]
> +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.
Is there any link that could provide some guidance about the usage of
pip+virtualenv?
I could only find this
https://wiki.gentoo.org/wiki/Pip
relying on https://wiki.archlinux.org/index.php/Python/Virtual_environment for
virtualenv information.
In my case I am used to pip (as regular user of course), but not with
virtualenv... then, maybe pointing people to some instructions about how to
properly use virtualenv+pip in Gentoo would be useful
Thanks
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 488 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [gentoo-dev] [PATCH news] 2020-02-06-python-2-7-eol: news item for py2.7 EOL
2020-02-05 21:34 ` Pacho Ramos
@ 2020-02-06 21:24 ` Michał Górny
0 siblings, 0 replies; 3+ messages in thread
From: Michał Górny @ 2020-02-06 21:24 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1087 bytes --]
On Wed, 2020-02-05 at 22:34 +0100, Pacho Ramos wrote:
> El mié, 05-02-2020 a las 22:20 +0100, Michał Górny escribió:
> > [...]
> > +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.
>
> Is there any link that could provide some guidance about the usage of
> pip+virtualenv?
>
> I could only find this
> https://wiki.gentoo.org/wiki/Pip
>
> relying on https://wiki.archlinux.org/index.php/Python/Virtual_environment for
> virtualenv information.
>
> In my case I am used to pip (as regular user of course), but not with
> virtualenv... then, maybe pointing people to some instructions about how to
> properly use virtualenv+pip in Gentoo would be useful
>
I'm not aware of any. However, I don't think we ought to babysit people
on virtualenv if they really do serious python programming.
--
Best regards,
Michał Górny
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 618 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2020-02-06 21:24 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-02-05 21:20 [gentoo-dev] [PATCH news] 2020-02-06-python-2-7-eol: news item for py2.7 EOL Michał Górny
2020-02-05 21:34 ` Pacho Ramos
2020-02-06 21:24 ` Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox