* [gentoo-dev] [PATCH 1/2] distutils-r1.eclass: Use --build-option instead of --global-option
@ 2023-02-22 18:20 Michał Górny
0 siblings, 0 replies; only message in thread
From: Michał Górny @ 2023-02-22 18:20 UTC (permalink / raw
To: gentoo-dev; +Cc: Michał Górny
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
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-22 18:21 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-22 18:20 [gentoo-dev] [PATCH 1/2] distutils-r1.eclass: Use --build-option instead of --global-option Michał Górny
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox