frescobaldi / python-ly

A Python package and commandline tool to manipulate LilyPond files
https://pypi.org/project/python-ly
135 stars 33 forks source link

Why does getdata.ly not produce a file? #96

Open uliska opened 7 years ago

uliska commented 7 years ago

@wbsoft how do you use getdata.ly? From what it looks like you seem to run LilyPond on it and then copy the output from the console, isn't it?

Is there any reason why getdata.ly doesn't directly write the output to a file? Actually it should IMO directly overwrite _lilypond_data.py as the modifications will be immediately visible (and reversible) through a git diff.

If there are no objections I could update it accordingly.

Additionally it had been discussed more than once that we should have two such files, one for the stable and one for the current development version. As a start I would (if I touch the code anyway) rename to _lilypond_data_2_18.py' (I suggest not to use "stable" and "devel" but minor version numbers, so we can keep support for 2.18 even when 2.20 will be out (and so on for the future)).

uliska commented 7 years ago

94

fedelibre commented 7 years ago

@uliska there's a Makefile for that:

cd ly/data
make -B LILYPOND=/path/to/lilypond

+1 for having a file also for the development version!