fix files insalled in wrong path 11/292411/2
authorbiao716.wang <biao716.wang@samsung.com>
Sat, 6 May 2023 01:58:05 +0000 (10:58 +0900)
committerbiao716.wang <biao716.wang@samsung.com>
Sat, 6 May 2023 02:17:26 +0000 (11:17 +0900)
Change-Id: I1d2e53dd8b24668532afd663edd213eb6d96165e
Signed-off-by: biao716.wang <biao716.wang@samsung.com>
rpmUtils/Makefile
yum/Makefile

index 39033b65396c45b352c2f3d0b3973dadbc46e48a..81a6e7cfd4361636d4aaf50ffec8e3d550996962 100644 (file)
@@ -1,10 +1,8 @@
 PYTHON=python3
 PACKAGE = $(shell basename `pwd`)
 PYFILES = $(wildcard *.py)
-PYVER := $(shell $(PYTHON) -c 'import sys; print("%.3s" %(sys.version))')
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print(sys.prefix)')
-PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
-PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
+PYLIBDIR = $(shell $(PYTHON) -c 'import sysconfig; print(sysconfig.get_paths()["stdlib"])')
+PKGDIR = $(PYLIBDIR)/dist-packages/$(PACKAGE)
 
 all: 
        echo "Nothing to do"
index 39033b65396c45b352c2f3d0b3973dadbc46e48a..f25e7b78c75708e8c552a77443b29762cfc18b68 100644 (file)
@@ -1,10 +1,8 @@
 PYTHON=python3
 PACKAGE = $(shell basename `pwd`)
 PYFILES = $(wildcard *.py)
-PYVER := $(shell $(PYTHON) -c 'import sys; print("%.3s" %(sys.version))')
-PYSYSDIR := $(shell $(PYTHON) -c 'import sys; print(sys.prefix)')
-PYLIBDIR = $(PYSYSDIR)/lib/python$(PYVER)
-PKGDIR = $(PYLIBDIR)/site-packages/$(PACKAGE)
+PYLIBDIR = $(shell python3 -c 'import sysconfig; print(sysconfig.get_paths()["stdlib"])')
+PKGDIR = $(PYLIBDIR)/dist-packages/$(PACKAGE)
 
 all: 
        echo "Nothing to do"