Gentoo Archives: gentoo-dev-announce

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev-announce@l.g.o
Cc: gentoo-dev@l.g.o
Subject: [gentoo-dev-announce] Introducing python-exec:2 (and the migration plan)
Date: Tue, 17 Sep 2013 16:09:48
1 Hello, all.
3 I have committed today the eclass support code for python-exec:2,
4 and first package.mask-ed version of it. The benefits of the new
5 solution were explained in the earlier RFC mail [1]. Now for
6 the migration plan.
8 The eclasses cleanly support either version of the wrapper. They use :=
9 dep and a has_version check to use the latest slot installed. That is,
10 you won't get the new behavior until you install python-exec:2.
11 Afterwards, the packages should cleanly switch on next rebuild.
13 We're planning on keeping python-exec:2 in package.mask for a while
14 for testing, then unleash it to the ~arch population. When tested well
15 enough, we will stabilize it and start deprecating the old wrapper. For
16 most of our users, this process should be seamless and pain-free.
18 However, we know of some ebuilds that are going to be broken with
19 the new wrapper since they rely too much on wrapping mechanism [2].
20 Since many of those can't really be fixed much better, those ebuilds
21 will be 'locked' at a single version of the wrapper.
23 If you know that a package does not work with python-exec:2,
24 the following snippet needs to be added to it:
26 DEPEND="dev-python/python-exec:0"
29 This will ensure keeping the old wrapper around and override
30 the has_version check to force using the old wrapper.
32 If you know that your package works only with python-exec:2,
33 use the following snippet instead:
35 DEPEND="dev-python/python-exec:2"
37 No override is necessary here, since install of new wrapper will cause
38 the eclass to automatically switch to it. But please note that your
39 package's visibility/keywords will need to follow python-exec:2.
41 All testing will be appreciated. Enjoy.
43 [1]:
44 [2]:
46 --
47 Best regards,
48 Michał Górny


File name MIME type
signature.asc application/pgp-signature