Skip to content

Commit 7269014

Browse files
committed
Specify the exact python version, don't just assume it's python 2.7
1 parent 31a7ee9 commit 7269014

5 files changed

Lines changed: 6 additions & 5 deletions

File tree

apache/index.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python2.7
22

33
from mod_python import apache
44
from mod_python import util

install-dev-dependencies.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ if type apt-get >/dev/null ; then
1717
BROWSERS="iceweasel chromium"
1818
CHROMEDRIVER="chromedriver"
1919
fi
20+
# In Debian, `python-` is assumed to be python 2.7, no need to specify - dkg
2021
$SUDO_SHIM apt-get install libxml2-dev libxml2-utils libxslt1-dev \
2122
python-dev $BROWSERS zip sqlite3 python-pip libcurl4-openssl-dev xvfb \
2223
libssl-dev git $CHROMEDRIVER

makecrx.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ if [ -n "$1" ]; then
3131
git reset --hard "$1"
3232
fi
3333

34-
VERSION=`python -c "import json ; print(json.loads(open('chromium/manifest.json').read())['version'])"`
34+
VERSION=`python2.7 -c "import json ; print(json.loads(open('chromium/manifest.json').read())['version'])"`
3535

3636
echo "Building chrome version" $VERSION
3737

@@ -121,7 +121,7 @@ sig_len_hex=$(byte_swap $(printf '%08x\n' $(ls -l "$sig" | awk '{print $5}')))
121121
) > "$crx"
122122
#rm -rf pkg/crx
123123

124-
#python githubhelper.py $VERSION
124+
#python2.7 githubhelper.py $VERSION
125125

126126
#git add chromium/updates.xml
127127
#git commit -m "release $VERSION"

test/rules/curl_test_nss/curl_testcase_nss_sni.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python2.7
22
import pycurl
33
import cStringIO
44

test/rules/src/https_everywhere_checker/gvgen.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
#!/usr/bin/python
1+
#!/usr/bin/env python2.7
22
# -*- coding: utf-8 -*-
33
# $Id: gvgen.py 10440 2007-10-23 15:17:33Z toady $
44
"""

0 commit comments

Comments
 (0)