diff options
author | biao716.wang <biao716.wang@samsung.com> | 2023-05-06 10:58:05 +0900 |
---|---|---|
committer | biao716.wang <biao716.wang@samsung.com> | 2023-05-06 11:17:26 +0900 |
commit | 7c25f5826f72a8b67b49141d57bada820f35e259 (patch) | |
tree | 005a3afe47dc163aa0032988fa2129dee45ef6d2 | |
parent | f8781453269db52ea28bfdfe1de3f60e03db1370 (diff) | |
download | yum-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/Makefile | 6 | ||||
-rw-r--r-- | yum/Makefile | 6 |
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" |