File tree 3 files changed +11
-9
lines changed
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
19
19
fi
20
20
21
21
# 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 ) ) "
23
23
RECIPES_PATH=" $ROOT_PATH /recipes"
24
24
BUILD_PATH=" $ROOT_PATH /build"
25
25
LIBS_PATH=" $ROOT_PATH /build/libs"
@@ -142,7 +142,7 @@ function push_arm() {
142
142
export LDFLAGS=" -lm"
143
143
144
144
# 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) ' )
146
146
if [ " $PYPLATFORM " == " linux2" ]; then
147
147
PYPLATFORM=" linux"
148
148
elif [ " $PYPLATFORM " == " linux3" ]; then
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
3
+ from __future__ import print_function
3
4
import os
4
5
import sys
5
6
import subprocess
@@ -39,10 +40,10 @@ while args:
39
40
unique_args .insert (0 , a )
40
41
41
42
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:' )
44
45
for arg in unique_args :
45
- print '' , arg
46
+ print ( ' %s' % arg )
46
47
47
48
args = os .environ ['CC' ].split () + \
48
49
['-shared' , '-O3' , '-o' , sys .argv [1 ]] + \
Original file line number Diff line number Diff line change 1
1
#!/usr/bin/env python
2
2
3
+ from __future__ import print_function
3
4
import sys
4
5
import subprocess
5
6
from os import environ
@@ -51,8 +52,8 @@ while i < len(sys.argv):
51
52
continue
52
53
53
54
if opt .startswith ("-" ):
54
- print sys .argv
55
- print "Unknown option: " , opt
55
+ print ( sys .argv )
56
+ print ( "Unknown option: %s" % opt )
56
57
sys .exit (1 )
57
58
58
59
if not opt .endswith ('.o' ):
@@ -61,12 +62,12 @@ while i < len(sys.argv):
61
62
objects .append (opt )
62
63
63
64
64
- f = file (output , "w" )
65
+ f = open (output , "w" )
65
66
f .close ()
66
67
67
68
output = join (environ .get ('LIBLINK_PATH' ), basename (output ))
68
69
69
- f = file (output + ".libs" , "w" )
70
+ f = open (output + ".libs" , "w" )
70
71
f .write (" " .join (libs ))
71
72
f .close ()
72
73
You can’t perform that action at this time.
0 commit comments