summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbiao716.wang <biao716.wang@samsung.com>2023-05-06 10:58:05 +0900
committerbiao716.wang <biao716.wang@samsung.com>2023-05-06 11:17:26 +0900
commit7c25f5826f72a8b67b49141d57bada820f35e259 (patch)
tree005a3afe47dc163aa0032988fa2129dee45ef6d2
parentf8781453269db52ea28bfdfe1de3f60e03db1370 (diff)
downloadyum-7c25f5826f72a8b67b49141d57bada820f35e259.tar.gz
yum-7c25f5826f72a8b67b49141d57bada820f35e259.tar.bz2
yum-7c25f5826f72a8b67b49141d57bada820f35e259.zip
fix files insalled in wrong path
Change-Id: I1d2e53dd8b24668532afd663edd213eb6d96165e Signed-off-by: biao716.wang <biao716.wang@samsung.com>
-rw-r--r--rpmUtils/Makefile6
-rw-r--r--yum/Makefile6
2 files changed, 4 insertions, 8 deletions
diff --git a/rpmUtils/Makefile b/rpmUtils/Makefile
index 39033b6..81a6e7c 100644
--- a/rpmUtils/Makefile
+++ b/rpmUtils/Makefile
@@ -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"
diff --git a/yum/Makefile b/yum/Makefile
index 39033b6..f25e7b7 100644
--- a/yum/Makefile
+++ b/yum/Makefile
@@ -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"