[RFC] helpers: specify Python 2.7, not just any python2

Brian Norris computersforpeace at gmail.com
Fri Aug 1 00:51:31 PDT 2014


The 'argparse' package is new in 2.7. Some installations (e.g., RHEL 6)
still have a default python2 of Python 2.6, but can optionally install
2.7.

Signed-off-by: Brian Norris <computersforpeace at gmail.com>
---
I think this is safe. FWIW I've tested it on RHEL 6 and a couple of different
Ubuntu systems.

 helpers/aiaiai-diff-log-helper | 2 +-
 helpers/aiaiai-extract-patches | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/helpers/aiaiai-diff-log-helper b/helpers/aiaiai-diff-log-helper
index 93623e2675b5..e36aa6a223a7 100755
--- a/helpers/aiaiai-diff-log-helper
+++ b/helpers/aiaiai-diff-log-helper
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 # -*- coding: utf-8 -*-
 
 """
diff --git a/helpers/aiaiai-extract-patches b/helpers/aiaiai-extract-patches
index fe7b7a163fa7..f30c03f8800b 100755
--- a/helpers/aiaiai-extract-patches
+++ b/helpers/aiaiai-extract-patches
@@ -1,4 +1,4 @@
-#!/usr/bin/env python2
+#!/usr/bin/env python2.7
 # -*- coding: utf-8 -*-
 
 """
-- 
1.9.1




More information about the aiaiai mailing list