commit:     7b001f90fb23b4713fdc5762e943a8613ef8871c
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Tue Feb 21 09:12:01 2023 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Sat Feb 25 06:08:58 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7b001f90

distutils-r1.eclass: Use --build-option instead of --global-option

Replace the `--global-option` used to pass custom setup.py arguments
with `--build-option`.  Using the former to pass arbitrary options
is deprecated since setuptools 64.0.0.  They are both equivalent right
now and `--build-option` will preserve the current behavior, so this
should be NFC (except for silencing the warning).

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

 eclass/distutils-r1.eclass | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/eclass/distutils-r1.eclass b/eclass/distutils-r1.eclass
index e95047e3a1f0..426de7200957 100644
--- a/eclass/distutils-r1.eclass
+++ b/eclass/distutils-r1.eclass
@@ -1331,7 +1331,7 @@ distutils_pep517_install() {
                                        "${EPYTHON}" - "${DISTUTILS_ARGS[@]}" 
<<-EOF || die
                                                import json
                                                import sys
-                                               
print(json.dumps({"--global-option": sys.argv[1:]}))
+                                               
print(json.dumps({"--build-option": sys.argv[1:]}))
                                        EOF
                                )
                        fi

Reply via email to