Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: "Michał Górny" <mgorny@g.o>
Cc: Gentoo Dev <gentoo-dev@l.g.o>, Gentoo Python Project <python@g.o>
Subject: [gentoo-dev] Re: [PATCH 1/3] python-utils-r1.eclass: Allow -2/-3 as impl-patterns for py2/py3
Date: Wed, 10 May 2017 20:33:01
Message-Id: CAJ0EP42owWAaURs6GXC7Rbwn+AWHekvQyTS1smhx71RH3VnLaQ@mail.gmail.com
In Reply to: [gentoo-dev] [PATCH 1/3] python-utils-r1.eclass: Allow -2/-3 as impl-patterns for py2/py3 by "Michał Górny"
1 On Wed, May 10, 2017 at 2:53 PM, Michał Górny <mgorny@g.o> wrote:
2 > Allow two special values in the implementation patterns for
3 > _python_impl_matches(): -2 to indicate all Python 2-compatible
4 > implementations, and -3 to indicate all Python 3-compatible
5 > implementations. Both of those values are implemented using
6 > the python_is_python3 function.
7 >
8 > This is mostly meant to make it easier and more fool-proof to write
9 > dependencies on backports to Python 2 which in most cases apply to PyPy2
10 > as well.
11
12 Seems reasonable to me.