Gentoo Archives: gentoo-dev

From: Mike Gilbert <floppym@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] [PATCH] distutils-r1.eclass: Do not modify the HOME variable
Date: Fri, 06 May 2016 13:26:05
Message-Id: 1462541150-14440-1-git-send-email-floppym@gentoo.org
1 This was only necessary when we ran phases in parallel.
2 Also, PMS says this variable should not be modified.
3 ---
4 eclass/distutils-r1.eclass | 6 ------
5 1 file changed, 6 deletions(-)
6
7 diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
8 index 7965e91..497bed5 100644
9 --- a/eclass/distutils-r1.eclass
10 +++ b/eclass/distutils-r1.eclass
11 @@ -628,12 +628,6 @@ distutils-r1_run_phase() {
12 # in the sys.path_importer_cache)
13 mkdir -p "${BUILD_DIR}/lib" || die
14
15 - # We need separate home for each implementation, for .pydistutils.cfg.
16 - if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
17 - local -x HOME=${HOME}/${EPYTHON}
18 - mkdir -p "${HOME}" || die
19 - fi
20 -
21 # Set up build environment, bug #513664.
22 local -x AR=${AR} CC=${CC} CPP=${CPP} CXX=${CXX}
23 tc-export AR CC CPP CXX
24 --
25 2.8.2

Replies