Skip to content

Instantly share code, notes, and snippets.

@rickmark
Created July 25, 2014 01:08
Show Gist options
  • Save rickmark/0fb234430b1835414a29 to your computer and use it in GitHub Desktop.
Save rickmark/0fb234430b1835414a29 to your computer and use it in GitHub Desktop.
Support multi-version python systems
From 3c168240772cdaaa837e110f1c71b7dec658bb1a Mon Sep 17 00:00:00 2001
From: Richard Mark <rickmark@outlook.com>
Date: Thu, 24 Jul 2014 16:19:52 -0700
Subject: [PATCH] Use the correct version of python from Autoconf for jhbuild
script
---
scripts/Makefile.am | 1 +
scripts/jhbuild.in | 2 +-
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/scripts/Makefile.am b/scripts/Makefile.am
index 1e4087f..faa79f7 100644
--- a/scripts/Makefile.am
+++ b/scripts/Makefile.am
@@ -16,6 +16,7 @@ jhbuild: jhbuild.in
-e s!\@pythondir\@!$(pythondir)! \
-e s!\@PACKAGE\@!$(PACKAGE)! \
-e s!\@VERSION\@!$(VERSION)! \
+ -e s!\@PYTHON\@!$(PYTHON)! \
< $< > $@
jhbuild: Makefile
diff --git a/scripts/jhbuild.in b/scripts/jhbuild.in
index aee6b73..e3db590 100644
--- a/scripts/jhbuild.in
+++ b/scripts/jhbuild.in
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!@PYTHON@
# -*- coding: utf-8 -*-
import sys
--
2.0.2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment