diff options
author | Mike Gilbert <floppym@gentoo.org> | 2016-05-28 09:07:16 -0400 |
---|---|---|
committer | Mike Gilbert <floppym@gentoo.org> | 2016-05-28 09:11:25 -0400 |
commit | 42da9d3c2b68d83c54d1dee56709de684f8771d5 (patch) | |
tree | 71dd0dcb9b805066f1c08fff9d8e8ada3c297c7b /eclass/distutils-r1.eclass | |
parent | sys-block/gparted: Drop old (diff) | |
download | gentoo-42da9d3c2b68d83c54d1dee56709de684f8771d5.tar.gz gentoo-42da9d3c2b68d83c54d1dee56709de684f8771d5.tar.bz2 gentoo-42da9d3c2b68d83c54d1dee56709de684f8771d5.zip |
Revert "distutils-r1.eclass: Do not modify the HOME variable"
This reverts commit 3bcfb71425f15e237d6002ff3626e2e169df3f05.
This change can break ebuilds that call esetup.py in src_test.
Diffstat (limited to 'eclass/distutils-r1.eclass')
-rw-r--r-- | eclass/distutils-r1.eclass | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index dbc55ff45ebe..afd29ed272ff 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -632,6 +632,12 @@ distutils-r1_run_phase() { # in the sys.path_importer_cache) mkdir -p "${BUILD_DIR}/lib" || die + # We need separate home for each implementation, for .pydistutils.cfg. + if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then + local -x HOME=${HOME}/${EPYTHON} + mkdir -p "${HOME}" || die + fi + # Set up build environment, bug #513664. local -x AR=${AR} CC=${CC} CPP=${CPP} CXX=${CXX} tc-export AR CC CPP CXX |