[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: python shebang, and other interpreters.



[Wolodja Wentland, 2009-09-20]
> Statistics
> ==========
> 
> I can not generate an overview over all python applications, but the 
> following numbers give an overview on the schemes employed on *my*
> system:
> 
> Programs in /usr/bin
> --------------------
> 
> #!/usr/bin/env python       43 programs
> #!/usr/bin/env python2.4     1 program
> #!/usr/bin/env python2.4     2 programs
> 
> #!/usr/bin/python           50 programs
> #!/usr/bin/python2.4         1 program
> #!/usr/bin/python2.5         4 programs

on my system:

#!/usr/bin/python*	209 programs
#!/usr/bin/env python*	37 programs

IMHO /usr/bin/python should be a rule and "/usr/bin/env python" - (very
rare) exception (ipython or paster might qualify here)

BTW: If you install Python scripts via "python setup.py ..." (most
packages do that), it will not use env in shebang.
-- 
Piotr Ożarowski                         Debian GNU/Linux Developer
www.ozarowski.pl          www.griffith.cc           www.debian.org
GPG Fingerprint: 1D2F A898 58DA AF62 1786 2DF7 AEF6 F1A2 A745 7645

Attachment: signature.asc
Description: Digital signature


Reply to: