Gentoo Archives: gentoo-python

From: "Michał Górny" <mgorny@g.o>
To: gentoo-python@l.g.o
Cc: python@g.o, "Michał Górny" <mgorny@g.o>
Subject: [gentoo-python] [PATCH 5/8] distutils-r1: disable sub-root merging.
Date: Fri, 13 Sep 2013 18:58:36
Message-Id: 1379098729-2801-6-git-send-email-mgorny@gentoo.org
In Reply to: [gentoo-python] Clean up of python eclasses and support for python-exec:2 by "Michał Górny"
1 The sub-roots are no longer necessary since we're installing scripts to
2 per-impl directories initially.
3 ---
4 gx86/eclass/distutils-r1.eclass | 9 +++------
5 1 file changed, 3 insertions(+), 6 deletions(-)
6
7 diff --git a/gx86/eclass/distutils-r1.eclass b/gx86/eclass/distutils-r1.eclass
8 index 7102c58..5fcb55e 100644
9 --- a/gx86/eclass/distutils-r1.eclass
10 +++ b/gx86/eclass/distutils-r1.eclass
11 @@ -476,9 +476,7 @@ distutils-r1_python_install() {
12 addpredict "$(python_get_sitedir)"
13 addpredict /usr/lib/portage/pym
14
15 - local root=${D}/_${EPYTHON}
16 - [[ ${DISTUTILS_SINGLE_IMPL} ]] && root=${D}
17 - flags+=( --root="${root}" )
18 + flags+=( --root="${D}" )
19
20 if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
21 local PYTHON_SCRIPTDIR
22 @@ -488,13 +486,12 @@ distutils-r1_python_install() {
23
24 esetup.py install "${flags[@]}" "${@}"
25
26 - if [[ -d ${root}$(python_get_sitedir)/tests ]]; then
27 + if [[ -d ${D}$(python_get_sitedir)/tests ]]; then
28 die "Package installs 'tests' package, file collisions likely."
29 fi
30
31 if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
32 - _distutils-r1_wrap_scripts "${root}"
33 - multibuild_merge_root "${root}" "${D}"
34 + _distutils-r1_wrap_scripts "${D}"
35 fi
36 }
37
38 --
39 1.8.3.2

Replies