commit:     b7b0732f914295d30e77f7be40cba1c79fdf2313
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Sun Nov 10 03:29:37 2024 +0000
Commit:     Eli Schwartz <eschwartz <AT> gentoo <DOT> org>
CommitDate: Fri Nov 29 21:12:06 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b7b0732f

distutils-r1.eclass: Also do SETUPTOOLS_RUST_CARGO_PROFILE uncond.

Signed-off-by: Michał Górny <mgorny <AT> gentoo.org>
Signed-off-by: Eli Schwartz <eschwartz <AT> gentoo.org>

 eclass/distutils-r1.eclass | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index 2a71899f08b7..e5a13e9c88cd 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1259,6 +1259,9 @@ distutils_pep517_install() {
 
        # set it globally in case we were using "standalone" wrapper
        local -x HATCH_METADATA_CLASSIFIERS_NO_VERIFY=1
+       if in_iuse debug && use debug; then
+               local -x SETUPTOOLS_RUST_CARGO_PROFILE=dev
+       fi
 
        case ${DISTUTILS_USE_PEP517} in
                maturin)
@@ -1351,9 +1354,6 @@ distutils_pep517_install() {
                        )
                        ;;
                setuptools)
-                       if in_iuse debug && use debug; then
-                               local -x SETUPTOOLS_RUST_CARGO_PROFILE=dev
-                       fi
                        if [[ -n ${DISTUTILS_ARGS[@]} ]]; then
                                config_settings=$(
                                        "${EPYTHON}" - "${DISTUTILS_ARGS[@]}" 
<<-EOF || die

Reply via email to