[katello-devel] Why #!/usr/bin/env ?

Ewoud Kohl van Wijngaarden ewoud+katello at kohlvanwijngaarden.nl
Tue Jul 24 10:29:04 UTC 2012


On Mon, Jul 23, 2012 at 11:11:40PM +0200, Miroslav Suchy wrote:
> On 23.7.2012 23:05, Eric Sammons wrote:
> >>>among developers. Then python can live in ~/myenv/bin/python as
> >>>>  >  well as
> >>>>  >  many dependencies under ~/myenv/lib/python2.X/site-packages which
> >>>>  >  /usr/bin/python will never find, or worse, different versions. I
> >>>>  >  imagine
> >>>>  >  something similar may exist in the ruby world.
>
> And that ~/myenv/bin/python is python 2.4, 2.6, or 3.0? All of them
> behave *very* differently.

If you take a look at tox[1] you will see that it heavily uses this. It
makes it easy to test your software under 2.6, 2.7 and 3.0 for example.
A common use case is test your django application under python 2.6 & 2.7
and django 1.3 & 1.4 (so 4 environments).

[1]: http://tox.readthedocs.org/en/latest/index.html




More information about the katello-devel mailing list