From e46b7fd568352311ab6b03a7cc38b891ee561e36 Mon Sep 17 00:00:00 2001 From: Michał Górny Date: Sat, 23 Jan 2021 10:29:37 +0100 Subject: distutils-r1.eclass: Switch dift default to --via-root MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Switch the default distutils_install_for_testing behavior to --via-root (from legacy --via-home). The old versions of setuptools where --via-home worked are gone, and testing has so far proven that --via-root in the worst case leaves package as broken as before. Signed-off-by: Michał Górny --- eclass/distutils-r1.eclass | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'eclass') diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass index c5c954f49250..07ded8516fdc 100644 --- a/eclass/distutils-r1.eclass +++ b/eclass/distutils-r1.eclass @@ -550,11 +550,11 @@ esetup.py() { # For most of the packages, tests built in BUILD_DIR are good enough. # # The function supports two install modes. The current default is -# the legacy --via-home mode. However, it has problems with newer -# versions of setuptools (50.3.0+). The --via-root mode generally -# works for these packages, and it will probably become the default -# in the future, once we test all affected packages. Please note -# that proper testing sometimes requires unmerging the package first. +# --via-root mode. Previously, the function defaulted to --via-home +# mode but it has been broken by new versions of setuptools (50.3.0+). +# If you find that --via-root does not work but --via-home does, please +# file a bug to let us know. Please note that proper testing sometimes +# requires unmerging the package first. distutils_install_for_testing() { debug-print-function ${FUNCNAME} "${@}" @@ -575,7 +575,7 @@ distutils_install_for_testing() { PATH=${bindir}:${PATH} PYTHONPATH=${libdir}:${PYTHONPATH} - local install_method=home + local install_method=root case ${1} in --via-home) install_method=home -- cgit v1.2.3-65-gdbad