File: 0006-use-python3-for-install.patch

package info (click to toggle)
xgridfit 2.3-7
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 3,000 kB
  • sloc: python: 1,262; xml: 466; sh: 283; makefile: 116; sed: 45
file content (33 lines) | stat: -rw-r--r-- 1,126 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
From: Hideki Yamane <henrich@debian.org>
Date: Sun, 8 Dec 2019 20:43:29 +0900
Subject: use python3 for install

---
 Makefile | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index 17dea3d..9d54d1b 100644
--- a/Makefile
+++ b/Makefile
@@ -27,9 +27,9 @@ MAINDIR = $(XMLDIR)/$(PACKAGE)
 install:
 	@install -d -m 0755 $(DESTDIR)$(BINDIR)
 	@install -p -m 0755 bin/* $(DESTDIR)$(BINDIR)
-	@which python > /dev/null ; \
+	@which python3 > /dev/null ; \
 	if [ $$? -eq 0 ] ; then \
-	  PYTHONPROG=`which python` ; \
+	  PYTHONPROG=`which python3` ; \
 	  for file in $(DESTDIR)$(BINDIR)/{ttx2xgf,xgfconfig,xgfmerge,xgfupdate,xgridfit,getinstrs} ; do \
 	  sed -i -e "s|@xgridfit_dir@|${MAINDIR}|g" -e "s|@version@|$(VERSION)|" -e \
 	  "s|@python_prog@|$$PYTHONPROG|" $$file ; done ; \
@@ -46,7 +46,7 @@ install:
 	done
 	@install -d -m 0755 $(DESTDIR)$(MANDIR)/man1
 	@install -p -m 0644 man/*.1 $(DESTDIR)$(MANDIR)/man1
-	@cd python ; python setup.py install --root=$(DESTDIR)/
+	@cd python ; python3 setup.py install --root=$(DESTDIR)/
 	@echo "Xgridfit installed successfully."