[glib] Use the same Python as we found in configure



commit 08cfcdc81add6f6f2247b1cc82d2c15ad27001f0
Author: Johan Dahlin <johan gnome org>
Date:   Fri Jun 29 11:59:23 2012 -0300

    Use the same Python as we found in configure
    
    Don't assume /usr/bin/python is python 2.x, on newer Ubuntu versions
    it's actually python 3.x.

 gio/gdbus-2.0/codegen/Makefile.am      |    2 +-
 gio/gdbus-2.0/codegen/gdbus-codegen.in |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gio/gdbus-2.0/codegen/Makefile.am b/gio/gdbus-2.0/codegen/Makefile.am
index cd9983e..9974005 100644
--- a/gio/gdbus-2.0/codegen/Makefile.am
+++ b/gio/gdbus-2.0/codegen/Makefile.am
@@ -23,7 +23,7 @@ CLEANFILES += gdbus-codegen
 EXTRA_DIST += gdbus-codegen.in
 
 gdbus-codegen: gdbus-codegen.in Makefile $(codegen_PYTHON)
-	$(AM_V_GEN) sed -e 's,@libdir\@,$(libdir),' $< > $  tmp && mv $  tmp $@
+	$(AM_V_GEN) sed -e 's,@libdir\@,$(libdir),' -e 's,@PYTHON\@,$(PYTHON),' $< > $  tmp && mv $  tmp $@
 	@chmod a+x $@
 
 clean-local:
diff --git a/gio/gdbus-2.0/codegen/gdbus-codegen.in b/gio/gdbus-2.0/codegen/gdbus-codegen.in
index ae900bb..217c755 100644
--- a/gio/gdbus-2.0/codegen/gdbus-codegen.in
+++ b/gio/gdbus-2.0/codegen/gdbus-codegen.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#! PYTHON@
 
 # GDBus - GLib D-Bus Library
 #



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