distutils is deprecated in python. Change the Makefile to use sysconfig instead Signed-off-by: John Kacur <jkacur@xxxxxxxxxx> --- 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