summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorMichał Górny <mgorny@gentoo.org>2018-05-03 15:54:43 +0200
committerMichał Górny <mgorny@gentoo.org>2018-05-07 09:43:33 +0200
commit19f1ec08ccfa4e3cef7ea7f0b8737f656500476d (patch)
tree1a26eee61c9d545611161ddaa143247eb895b2e2 /eclass
parentpython-r1.eclass: Enable EAPI 7 (no changes) (diff)
downloadgentoo-19f1ec08ccfa4e3cef7ea7f0b8737f656500476d.tar.gz
gentoo-19f1ec08ccfa4e3cef7ea7f0b8737f656500476d.tar.bz2
gentoo-19f1ec08ccfa4e3cef7ea7f0b8737f656500476d.zip
distutils-r1.eclass: Remove xdg_environment_reset in EAPI 7
Limit xdg_environment_reset call to EAPIs 5 & 6. It should no longer be necessary with ENV_UNSET done in EAPI 7.
Diffstat (limited to 'eclass')
-rw-r--r--eclass/distutils-r1.eclass7
1 files changed, 4 insertions, 3 deletions
diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index dd0c429d50fc..ede30b280863 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1,4 +1,4 @@
-# Copyright 1999-2017 Gentoo Foundation
+# Copyright 1999-2018 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# @ECLASS: distutils-r1.eclass
@@ -79,7 +79,8 @@ esac
if [[ ! ${_DISTUTILS_R1} ]]; then
[[ ${EAPI} == [45] ]] && inherit eutils
-inherit toolchain-funcs xdg-utils
+[[ ${EAPI} == [56] ]] && inherit xdg-utils
+inherit toolchain-funcs
if [[ ! ${DISTUTILS_SINGLE_IMPL} ]]; then
inherit multiprocessing python-r1
@@ -739,7 +740,7 @@ distutils-r1_src_prepare() {
distutils-r1_src_configure() {
python_export_utf8_locale
- xdg_environment_reset # Bug 577704
+ [[ ${EAPI} == [56] ]] && xdg_environment_reset # Bug 577704
if declare -f python_configure >/dev/null; then
_distutils-r1_run_foreach_impl python_configure