On Wed, Jul 01, 2009 at 09:58:07AM +0200, Jan Nieuwenhuizen wrote:
> Op dinsdag 30-06-2009 om 15:04 uur [tijdzone -0700], schreef Patrick
> McCarty:
> > Hello,
> > 
> > This patch should fix the "/usr/bin/python" problem for the Mac OS X
> > Python scripts; "/usr/bin/env python" is used instead.
> 
> Thanks, but this looks kludgy.  Considering
> 
>    class LilyPond ()
>      ...
>    def makeflags (self):
>        return ' TARGET_PYTHON=/usr/bin/python'
> 
> please just override that instead of calling string.replace ().

Okay, attached is a revised patch.

Thanks,
Patrick
>From 2989e384bc0d39db3c340c73f9e641b52e847e6f Mon Sep 17 00:00:00 2001
From: Patrick McCarty <pnor...@gmail.com>
Date: Tue, 30 Jun 2009 14:27:35 -0700
Subject: [PATCH] Fix Python scripts on Mac OS X

---
 gub/specs/lilypond.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gub/specs/lilypond.py b/gub/specs/lilypond.py
index 28f653f..840c9d0 100644
--- a/gub/specs/lilypond.py
+++ b/gub/specs/lilypond.py
@@ -350,6 +350,8 @@ class LilyPond__darwin (LilyPond):
     def configure_command (self):
         return (LilyPond.configure_command (self)
                 .replace ('--enable-rpath', '--disable-rpath'))
+    def makeflags (self):
+        return ' TARGET_PYTHON="/usr/bin/env python"'
 
 class LilyPond__darwin__ppc (LilyPond__darwin):
     def configure (self):
-- 
1.6.3.3

_______________________________________________
lilypond-devel mailing list
lilypond-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-devel

Reply via email to