lilypond-devel
[Top][All Lists]
Advanced

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

Re: Distributions upgrading to Python 3


From: Matthias Kilian
Subject: Re: Distributions upgrading to Python 3
Date: Tue, 19 Oct 2010 00:57:02 +0200
User-agent: Mutt/1.4.2.3i

(unlurking, i didn't spend much time on lilypond recently)

On Mon, Oct 18, 2010 at 01:59:15AM +0100, Graham Percival wrote:
> > --) Two scripts still have "/usr/bin/python" lines
> > (python/auxiliar/manuals_definitions.py, and scripts/build/pytt.py).
> > Those should be changed to "@PYTHON@", right?
> 
> python/ yes, since it's not something that people call manually.
> But stuff in scripts/build/ shouldn't have @PYTHON@, otherwise
> it'll bork if you call it manually.

But are those scripts supposed to be used without runnig autogen.sh
(and implied configure) first?

I may have some time during the next two weeks and arrange things
so those scripts will use the python detected by (or passed via
environment to) configure. If you want it.

> > Would it be feasible to use "#!/usr/bin/env @PYTHON@" or
> > "#!/usr/bin/env @TARGET_PYTHON@" for all Python scripts, using the
> > basename of the appropriate Python executable in place of the Make
> > variables?

#!/usr/bin/env YOUR_FAVORITE_INTERPRETER

should not be used ever. At least not for scripts that will be
installed system-wide. And if possible, not even for local scripts
(like scripts/build in lilypond).

Ciao,
        Kili



reply via email to

[Prev in Thread] Current Thread [Next in Thread]