Hello, I had problem to compile lilypond-1.4.10.tar.bz2 with new Python-2.2.tar.bz2.
You already found the critical line in lilypond-book.py: # pyton2.2b2 barfs on this 'lilypond-block': r"""(?m)^(?!@c)(?P<match>(?s)(?P<match>@lilypond(\[(?P<options>.*?)\])?\s(?P<code>.*?)@end lilypond\s))""", I found the equivalent code in python and a new check was added there. I think that the pattern for reqular expresison can not contains the same identifier <match> two times. And this bug is checked now by python. It is correct and logical. Small patch is attached. lilypond-book.py works now. Unfortunateely I have not assurance that the fix is correct. -- With greetings, Petr Mladek software developer --------------------------------------------------------------------- SuSE CR, s.r.o. e-mail: [EMAIL PROTECTED] Drahobejlova 27 tel:+420 2 9654 2373 190 00 Praha 9 fax:+420 2 9654 2374 Ceska republika http://www.suse.cz
--- scripts/lilypond-book.py +++ scripts/lilypond-book.py @@ -487,7 +487,7 @@ 'lilypond-file': '(?m)^(?!@c)(?P<match>@lilypondfile(\[(?P<options>.*?)\])?{(?P<filename>[^}]+)})', 'lilypond' : '(?m)^(?!@c)(?P<match>@lilypond(\[(?P<options>.*?)\])?{(?P<code>.*?)})', # pyton2.2b2 barfs on this - 'lilypond-block': r"""(?m)^(?!@c)(?P<match>(?s)(?P<match>@lilypond(\[(?P<options>.*?)\])?\s(?P<code>.*?)@end lilypond\s))""", + 'lilypond-block': r"""(?m)^(?!@c)(?P<match1>(?s)(?P<match>@lilypond(\[(?P<options>.*?)\])?\s(?P<code>.*?)@end lilypond\s))""", # 1.5.2 barfs on this. # 'lilypond-block': r"""(?m)^(?!@c)(?P<match>@lilypond(\[(?P<options>.*?)\])?\s(?P<code>.*?)@end lilypond\s)""",