1 |
commit: 42da9d3c2b68d83c54d1dee56709de684f8771d5 |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Sat May 28 13:07:16 2016 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Sat May 28 13:11:25 2016 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=42da9d3c |
7 |
|
8 |
Revert "distutils-r1.eclass: Do not modify the HOME variable" |
9 |
|
10 |
This reverts commit 3bcfb71425f15e237d6002ff3626e2e169df3f05. |
11 |
|
12 |
This change can break ebuilds that call esetup.py in src_test. |
13 |
|
14 |
eclass/distutils-r1.eclass | 6 ++++++ |
15 |
1 file changed, 6 insertions(+) |
16 |
|
17 |
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass |
18 |
index dbc55ff..afd29ed 100644 |
19 |
--- a/eclass/distutils-r1.eclass |
20 |
+++ b/eclass/distutils-r1.eclass |
21 |
@@ -632,6 +632,12 @@ distutils-r1_run_phase() { |
22 |
# in the sys.path_importer_cache) |
23 |
mkdir -p "${BUILD_DIR}/lib" || die |
24 |
|
25 |
+ # We need separate home for each implementation, for .pydistutils.cfg. |
26 |
+ if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then |
27 |
+ local -x HOME=${HOME}/${EPYTHON} |
28 |
+ mkdir -p "${HOME}" || die |
29 |
+ fi |
30 |
+ |
31 |
# Set up build environment, bug #513664. |
32 |
local -x AR=${AR} CC=${CC} CPP=${CPP} CXX=${CXX} |
33 |
tc-export AR CC CPP CXX |