What should be in scripts shebangs for python2?

Serpent7776 serpent7776 at gmail.com
Wed Feb 19 15:49:17 UTC 2014

On Wed, 19 Feb 2014 19:02:01 +0400
Lev Serebryakov <lev at FreeBSD.org> wrote:

> Hello, Freebsd-ports.
>  My port uses some pythons scripts to configure (it is not pythonn-related
> by itself, only authors of this software use python scripts on build
> stage).
>  How should I patch these scripts to work? It looks like
> /usr/local/bin/python2 is installed by devel/python2 port, and
> USE_PYTHON_BUILD=yes doesn't depends on this port, but on python27, which
> could be changed in future or by users's request, so I don't want to
> hardcode /usr/local/bin/python2.7, too...

I think it would be 

#!/usr/bin/env python2

// Serpent7776

More information about the freebsd-ports mailing list