[avahi] autotooling python scripts
Sebastien Estienne
sebastien.estienne at gmail.com
Wed Aug 3 07:19:41 EST 2005
2005/8/2, Joe Shaw <joeshaw at novell.com>:
> Hi,
>
> On Tue, 2005-08-02 at 21:34 +0200, Sebastien Estienne wrote:
> > > Ah, ok, in that case you could just make sure that it is a+x, put
> > > "#!/usr/bin/python" at the top, and stick it in /usr/bin sans .py
> > i also saw #!/usr/bin/env python
> > what is it about?
>
> It just sets up the environment and then executes python. The right
> thing to do that will work for all distributions is to have a .in file
> which actually has "#!/usr/bin/env @PYTHON@", put AM_PATH_PYTHON in
> configure.in, and have it generate the actual script.
>
i wanted to do it like this, the only drawbacks is for developpers, we
can't really test in the working dir we need to ./configure
script.py.in -> script.py.in, add features in scrupt.py, and backports
them in script.py.in
Maybe i'm missing something
> Joe
>
>
--
Sebastien Estienne
More information about the avahi
mailing list