diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -6,8 +6,9 @@ PYLINT_IGNORE = oldUtils.py PKGNAME = yum VERSION=$(shell awk '/Version:/ { print $$2 }' ${PKGNAME}.spec) RELEASE=$(shell awk '/Release:/ { print $$2 }' ${PKGNAME}.spec) +PYLIBDIR=$(shell python3 -c 'import sysconfig; print(sysconfig.get_paths()["purelib"])') CVSTAG=yum-$(subst .,_,$(VERSION)-$(RELEASE)) -PYTHON=python +PYTHON=python3 WEBHOST = yum.baseurl.org WEB_DOC_PATH = /srv/projects/yum/web/download/docs/yum-api/ @@ -27,7 +28,7 @@ install: install -m 644 $$p $(DESTDIR)/usr/share/yum-cli/$$p; \ done mv $(DESTDIR)/usr/share/yum-cli/yum-updatesd.py $(DESTDIR)/usr/share/yum-cli/yumupd.py - $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/usr/share/yum-cli', 1, '$(PYDIR)', 1)" + $(PYTHON) -c "import compileall; compileall.compile_dir('$(DESTDIR)/usr/share/yum-cli', 1, '$(PYLIBDIR)/yum', 1)" mkdir -p $(DESTDIR)/usr/bin $(DESTDIR)/usr/sbin install -m 755 bin/yum.py $(DESTDIR)/usr/bin/yum |