Python shebang policy

Richard Laager rlaager at wiktel.com
Tue Mar 20 19:13:01 UTC 2018


On 03/20/2018 02:02 PM, Gary E. Miller via devel wrote:
>> I would prefer to see a ./waf configure option (with the default being
>> some sort of autodetection). That is, I want to be able to do
>> something like this:
>>
>> ./waf configure --with-python=/usr/bin/python3
> It already does that.

It definitely does not set the shebangs:

$ ./waf configure --python=/usr/bin/python3 --prefix=/usr
$ ./waf install --destdir=tmp
$ grep -r "/usr/bin/env python" tmp
tmp/usr/bin/ntpmon:#!/usr/bin/env python
tmp/usr/bin/ntpdig:#!/usr/bin/env python
tmp/usr/bin/ntpsweep:#!/usr/bin/env python
tmp/usr/bin/ntpviz:#!/usr/bin/env python
tmp/usr/bin/ntpkeygen:#!/usr/bin/env python
tmp/usr/bin/ntpwait:#!/usr/bin/env python
tmp/usr/bin/ntpq:#!/usr/bin/env python
tmp/usr/bin/ntptrace:#!/usr/bin/env python
tmp/usr/bin/ntplogtemp:#!/usr/bin/env python
tmp/usr/bin/ntploggps:#!/usr/bin/env python
tmp/usr/bin/ntpsnmpd:#!/usr/bin/env python
tmp/usr/lib/python3/dist-packages/ntp/agentx.py:#!/usr/bin/env python

-- 
Richard


More information about the devel mailing list