[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gentoo-dev
Subject:    [gentoo-dev] [PATCH 1/2] distutils-r1.eclass: Use --build-option instead of --global-option
From:       Michał Górny <mgorny () gentoo ! org>
Date:       2023-02-22 18:20:39
Message-ID: 20230222182040.1550296-1-mgorny () gentoo ! org
[Download RAW message or body]

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@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
-- 
2.39.2


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic