--- xgridfit/Makefile 2019-12-04 16:24:18.453929717 +0000 +++ xgridfit/Makefile 2019-12-04 16:31:38.125561499 +0000 @@ -27,9 +27,9 @@ install: @install -d -m 0755 $(DESTDIR)$(BINDIR) @install -p -m 0755 bin/* $(DESTDIR)$(BINDIR) - @which python > /dev/null ; \ + @which python2 > /dev/null ; \ if [ $$? -eq 0 ] ; then \ - PYTHONPROG=`which python` ; \ + PYTHONPROG=`which python2` ; \ 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 ; \ @@ -47,7 +47,7 @@ @install -d -m 0755 $(DESTDIR)$(MANDIR)/man1 @install -p -m 0644 man/*.1 $(DESTDIR)$(MANDIR)/man1 @rm -fr python.tmp ; cp -pr python python.tmp ; sed -i -e "s|@xgridfit_dir@|${MAINDIR}|g" python.tmp/xgflib.py - @cd python.tmp ; python setup.py install --root=$(DESTDIR)/ + @cd python.tmp ; python2 setup.py install --root=$(DESTDIR)/ @cd - ; rm -fr python.tmp @echo "Xgridfit installed successfully." @@ -55,9 +55,9 @@ install-mac: @install -d -m 0755 $(DESTDIR)$(BINDIR) @install -p -m 0755 bin/* $(DESTDIR)$(BINDIR) - @which python > /dev/null ; \ + @which python2 > /dev/null ; \ if [ $$? -eq 0 ] ; then \ - PYTHONPROG=`which python` ; \ + PYTHONPROG=`which python2` ; \ 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 ; \ @@ -74,7 +74,7 @@ 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 ; python2 setup.py install --root=$(DESTDIR)/ @echo "Xgridfit installed successfully."