File tree Expand file tree Collapse file tree 3 files changed +11
-9
lines changed
Expand file tree Collapse file tree 3 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -19,7 +19,7 @@ if [ "X$PYTHON" == "X" ]; then
1919fi
2020
2121# Paths
22- ROOT_PATH=" $( dirname $( $PYTHON -c ' import os,sys;print os.path.realpath(sys.argv[1])' $0 ) ) "
22+ ROOT_PATH=" $( dirname $( $PYTHON -c ' from __future__ import print_function; import os,sys;print( os.path.realpath(sys.argv[1]) )' $0 ) ) "
2323RECIPES_PATH=" $ROOT_PATH /recipes"
2424BUILD_PATH=" $ROOT_PATH /build"
2525LIBS_PATH=" $ROOT_PATH /build/libs"
@@ -142,7 +142,7 @@ function push_arm() {
142142 export LDFLAGS=" -lm"
143143
144144 # this must be something depending of the API level of Android
145- PYPLATFORM=$( $PYTHON -c ' import sys; print sys.platform' )
145+ PYPLATFORM=$( $PYTHON -c ' from __future__ import print_function; import sys; print( sys.platform) ' )
146146 if [ " $PYPLATFORM " == " linux2" ]; then
147147 PYPLATFORM=" linux"
148148 elif [ " $PYPLATFORM " == " linux3" ]; then
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
3+ from __future__ import print_function
34import os
45import sys
56import subprocess
@@ -39,10 +40,10 @@ while args:
3940 unique_args .insert (0 , a )
4041
4142
42- print 'Biglink create %s library' % sys .argv [1 ]
43- print 'Biglink arguments:'
43+ print ( 'Biglink create %s library' % sys .argv [1 ])
44+ print ( 'Biglink arguments:' )
4445for arg in unique_args :
45- print '' , arg
46+ print ( ' %s' % arg )
4647
4748args = os .environ ['CC' ].split () + \
4849 ['-shared' , '-O3' , '-o' , sys .argv [1 ]] + \
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
3+ from __future__ import print_function
34import sys
45import subprocess
56from os import environ
@@ -51,8 +52,8 @@ while i < len(sys.argv):
5152 continue
5253
5354 if opt .startswith ("-" ):
54- print sys .argv
55- print "Unknown option: " , opt
55+ print ( sys .argv )
56+ print ( "Unknown option: %s" % opt )
5657 sys .exit (1 )
5758
5859 if not opt .endswith ('.o' ):
@@ -61,12 +62,12 @@ while i < len(sys.argv):
6162 objects .append (opt )
6263
6364
64- f = file (output , "w" )
65+ f = open (output , "w" )
6566f .close ()
6667
6768output = join (environ .get ('LIBLINK_PATH' ), basename (output ))
6869
69- f = file (output + ".libs" , "w" )
70+ f = open (output + ".libs" , "w" )
7071f .write (" " .join (libs ))
7172f .close ()
7273
You can’t perform that action at this time.
0 commit comments