aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJacob Keller <jacob.e.keller@intel.com>2013-06-20 15:39:54 -0700
committerPeter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>2013-06-20 15:45:02 -0700
commit979875323bd3fdd43b29b1640a26748bb9ef94bb (patch)
tree09b783c76c88677ae42cb870acfa817a7ded84a7
parent3977d8258ae3d52ce0021a9a9496c09669c1f395 (diff)
downloadstgit-979875323bd3fdd43b29b1640a26748bb9ef94bb.tar.gz
stg: require python2 rather than generic python executable
This patch fixes an issue with machines which have python3 and python2 installed. It requires the python2 executable by default in order to prevent accidental use of the Python 3 series (which is not compatible.) Signed-off-by: Jacob Keller <jacob.e.keller@intel.com> Signed-off-by: Peter P Waskiewicz Jr <peter.p.waskiewicz.jr@intel.com>
-rw-r--r--Makefile2
-rwxr-xr-xsetup.py2
-rwxr-xr-xstg2
-rwxr-xr-xstg-build2
-rwxr-xr-xstg-dbg2
-rwxr-xr-xstg-prof2
6 files changed, 6 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 53c5694..c306881 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
prefix ?= $(HOME)
DESTDIR ?= /
-PYTHON ?= python
+PYTHON ?= python2
TEST_PATCHES ?= ..
diff --git a/setup.py b/setup.py
index 12ed1db..e765e3d 100755
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
import sys, glob, os
from distutils.core import setup
diff --git a/stg b/stg
index def843c..62e2a47 100755
--- a/stg
+++ b/stg
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# -*- python-mode -*-
"""Takes care of starting the Init function
"""
diff --git a/stg-build b/stg-build
index 2af6523..c135873 100755
--- a/stg-build
+++ b/stg-build
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# -*- python -*-
import optparse, sys
import stgit.main
diff --git a/stg-dbg b/stg-dbg
index 0c3ad39..546dc7e 100755
--- a/stg-dbg
+++ b/stg-dbg
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# -*- python-mode -*-
"""Takes care of starting the Init function
"""
diff --git a/stg-prof b/stg-prof
index de7bd13..cd5f141 100755
--- a/stg-prof
+++ b/stg-prof
@@ -1,4 +1,4 @@
-#!/usr/bin/env python
+#!/usr/bin/env python2
# -*- python-mode -*-
"""Takes care of starting the Init function
"""