diff --git a/apache/index.py b/apache/index.py index c6c6e662b9fe..4a3383fe909d 100755 --- a/apache/index.py +++ b/apache/index.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2.7 from mod_python import apache from mod_python import util diff --git a/install-dev-dependencies.sh b/install-dev-dependencies.sh index 080268b19d3b..d933b579cb41 100755 --- a/install-dev-dependencies.sh +++ b/install-dev-dependencies.sh @@ -17,6 +17,7 @@ if type apt-get >/dev/null ; then BROWSERS="iceweasel chromium" CHROMEDRIVER="chromedriver" fi + # In Debian, `python-` is assumed to be python 2.7, no need to specify - dkg $SUDO_SHIM apt-get install libxml2-dev libxml2-utils libxslt1-dev \ python-dev $BROWSERS zip sqlite3 python-pip libcurl4-openssl-dev xvfb \ libssl-dev git $CHROMEDRIVER diff --git a/makecrx.sh b/makecrx.sh index a934ca6ff4e3..dfcd0c414ca3 100755 --- a/makecrx.sh +++ b/makecrx.sh @@ -31,7 +31,7 @@ if [ -n "$1" ]; then git reset --hard "$1" fi -VERSION=`python -c "import json ; print(json.loads(open('chromium/manifest.json').read())['version'])"` +VERSION=`python2.7 -c "import json ; print(json.loads(open('chromium/manifest.json').read())['version'])"` echo "Building chrome version" $VERSION @@ -121,7 +121,7 @@ sig_len_hex=$(byte_swap $(printf '%08x\n' $(ls -l "$sig" | awk '{print $5}'))) ) > "$crx" #rm -rf pkg/crx -#python githubhelper.py $VERSION +#python2.7 githubhelper.py $VERSION #git add chromium/updates.xml #git commit -m "release $VERSION" diff --git a/test/rules/curl_test_nss/curl_testcase_nss_sni.py b/test/rules/curl_test_nss/curl_testcase_nss_sni.py index 598c696bbe92..bf4195c954c7 100755 --- a/test/rules/curl_test_nss/curl_testcase_nss_sni.py +++ b/test/rules/curl_test_nss/curl_testcase_nss_sni.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2.7 import pycurl import cStringIO diff --git a/test/rules/src/https_everywhere_checker/gvgen.py b/test/rules/src/https_everywhere_checker/gvgen.py index 1d1f66b6fb42..dca8b4021c1a 100644 --- a/test/rules/src/https_everywhere_checker/gvgen.py +++ b/test/rules/src/https_everywhere_checker/gvgen.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/env python2.7 # -*- coding: utf-8 -*- # $Id: gvgen.py 10440 2007-10-23 15:17:33Z toady $ """