Makefiles and FDP: Change python binary

Currently '/usr/local/bin/python3.7' is used as the value of
PYTHON_CMD. Right now this works because 3.7 is the default version of
Python 3 in the ports tree. However, at some point in the future, this
will be undoubtedly be changed.

It is also possible that users already might be building versions
newer than the default port/package, which needs to be an supported as
well.

In addition, the FDP recommends installing the 'python3' package. This
meta port/package depends on the default version of python, and
automatically creates a symlink to the default version.

With all this in mind, use '/usr/local/bin/python3' is used as the value
of PYTHON_CMD, since this means that the instructions will work
irrespective of which version is assigned.
This commit is contained in:
Yasuhiro Kimura 2021-02-16 19:29:11 +01:00 committed by Daniel Ebdrup Jensen
parent fd49e8d634
commit 8750cad450
3 changed files with 4 additions and 4 deletions

View file

@ -15,7 +15,7 @@
MAINTAINER=carlavilla@FreeBSD.org
PYTHON_CMD = /usr/local/bin/python3.7
PYTHON_CMD = /usr/local/bin/python3
HUGO_CMD = /usr/local/bin/hugo
LANGUAGES = en,es,pt-br,de,ja,zh-cn,zh-tw,ru,el,hu,it,mn,nl,pl,fr

View file

@ -129,7 +129,7 @@ This [.filename]#Makefile# takes the following form:
MAINTAINER=carlavilla@FreeBSD.org <.>
PYTHON_CMD = /usr/local/bin/python3.7 <.>
PYTHON_CMD = /usr/local/bin/python3 <.>
HUGO_CMD = /usr/local/bin/hugo <.>
LANGUAGES = en,es,pt_BR,de,ja,zh_CN,zh_TW,ru,el,hu,it,mn,nl,pl,fr <.>
@ -195,7 +195,7 @@ This [.filename]#Makefile# takes the form of:
MAINTAINER=carlavilla@FreeBSD.org <.>
PYTHON_CMD = /usr/local/bin/python3.7 <.>
PYTHON_CMD = /usr/local/bin/python3 <.>
HUGO_CMD = /usr/local/bin/hugo <.>
.ORDER: all run<.>

View file

@ -15,7 +15,7 @@
MAINTAINER=carlavilla@FreeBSD.org
PYTHON_CMD = /usr/local/bin/python3.7
PYTHON_CMD = /usr/local/bin/python3
HUGO_CMD = /usr/local/bin/hugo
.ifndef HOSTNAME