python_CMD in

Michael Gmelin freebsd at
Sat Jun 27 23:54:23 UTC 2015

This has been discussed before on freebsd-python:

I just found myself writing 

python_OLD_CMD= /usr/bin/env python
python_CMD=     ${PYTHON_CMD}

as python_CMD is /usr/local/bin/python by default, which seems to be

which says

"Executable scripts being installed MUST use ${PYTHON_CMD as shebang
line. See: Mk/Uses/"


python_CMD?= ${PYTHON_CMD} would seem a reasonable default.

Also, adding "/usr/bin/env <language>" as an alternative
<language>_OLD_CMD would be useful.

- Michael

Michael Gmelin

More information about the freebsd-ports mailing list