[PATCH] rt-tests: Makefile: Use sysconfig instead of distutils for PYLIB

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [RT Stable]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux