Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Cc: "Michał Górny" <mgorny@g.o>
Subject: [gentoo-dev] [PATCH 0/5] python*-r1: commonize PYTHON_COMPAT handling
Date: Thu, 17 Dec 2015 22:03:33
Message-Id: 1450389778-10144-1-git-send-email-mgorny@gentoo.org
1 Hello,
2
3 Here's yet another quick patch set for python*-r1 eclasses. Major
4 highlights:
5
6 * PYTHON_COMPAT processing is commonized and moved into python-utils-r1.
7 We no longer have random methods of accessing supported
8 and unsupported impls scattered all over the place.
9
10 * Supported and unsupported implementations are cached. So we don't have
11 to repeatedly check which ones are supported and which are to be
12 kipped. May speed up metadata regen a little. Or make it a bit slower.
13
14 * python-single-r1: python_gen_cond_dep and python_gen_usedep now
15 output correct USE dependencies when only a single impl is supported.
16
17 * PYTHON_COMPAT_OVERRIDE is now supported by all eclasses.
18
19 * Impl iteration in python-any-r1.eclass is a bit cleaner ;-).
20
21 Please review.
22
23
24 Michał Górny (5):
25 python*-r1.eclass: Commonize PYTHON_COMPAT processing, cache the
26 result
27 python-single-r1.eclass: Fix python_gen_* w/ single PYTHON_COMPAT impl
28 python-any-r1.eclass: Support PYTHON_COMPAT_OVERRIDE
29 python-single-r1.eclass: Support PYTHON_COMPAT_OVERRIDE
30 python-any-r1.eclass: Use reverse iter instead of reversing impls
31 array
32
33 eclass/python-any-r1.eclass | 69 +++++++++++++++----------
34 eclass/python-r1.eclass | 47 ++++-------------
35 eclass/python-single-r1.eclass | 113 ++++++++++++++++++++++++-----------------
36 eclass/python-utils-r1.eclass | 49 ++++++++++++++++++
37 4 files changed, 169 insertions(+), 109 deletions(-)
38
39 --
40 2.6.4

Replies