* [PATCH] rt-tests: Makefile: Use sysconfig instead of distutils for PYLIB
@ 2023-02-14 19:40 John Kacur
0 siblings, 0 replies; only message in thread
From: John Kacur @ 2023-02-14 19:40 UTC (permalink / raw)
To: RT; +Cc: Clark Williams, John Kacur
distutils is deprecated in python. Change the Makefile to use sysconfig
instead
Signed-off-by: John Kacur <jkacur@redhat.com>
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 4df61ece123b..14c141dd56ab 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ CFLAGS ?= -Wall -Wno-nonnull -Wextra
CPPFLAGS += -D_GNU_SOURCE -Isrc/include
LDFLAGS ?=
-PYLIB ?= $(shell python3 -c 'import distutils.sysconfig; print (distutils.sysconfig.get_python_lib())')
+PYLIB ?= $(shell python3 -c "import sysconfig; print(sysconfig.get_path('platlib'))")
# Check for errors, such as python3 not available
ifeq (${PYLIB},)
--
2.39.1
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2023-02-14 19:40 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-02-14 19:40 [PATCH] rt-tests: Makefile: Use sysconfig instead of distutils for PYLIB John Kacur
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).