make print statements python 3 compatible
This commit is contained in:
parent
17c9340434
commit
1c275e943f
12
SConscript
12
SConscript
@ -21,9 +21,9 @@ class ourSpawn:
|
||||
data, err = proc.communicate()
|
||||
rv = proc.wait()
|
||||
if rv:
|
||||
print "====="
|
||||
print err
|
||||
print "====="
|
||||
print("=====")
|
||||
print(err)
|
||||
print("=====")
|
||||
return rv
|
||||
def SetupSpawn(env):
|
||||
buf = ourSpawn()
|
||||
@ -137,7 +137,7 @@ if tool:
|
||||
for var in ["CC","CXX","LD","LIBPATH","STRIP"]:
|
||||
if var in os.environ:
|
||||
env[var] = os.environ[var]
|
||||
print "copying environment variable {0}={1!r}".format(var,os.environ[var])
|
||||
print("copying environment variable {0}={1!r}".format(var,os.environ[var]))
|
||||
# variables containing several space separated things
|
||||
for var in ["CFLAGS","CCFLAGS","CXXFLAGS","LINKFLAGS","CPPDEFINES","CPPPATH"]:
|
||||
if var in os.environ:
|
||||
@ -145,7 +145,7 @@ for var in ["CFLAGS","CCFLAGS","CXXFLAGS","LINKFLAGS","CPPDEFINES","CPPPATH"]:
|
||||
env[var] += SCons.Util.CLVar(os.environ[var])
|
||||
else:
|
||||
env[var] = SCons.Util.CLVar(os.environ[var])
|
||||
print "copying environment variable {0}={1!r}".format(var,os.environ[var])
|
||||
print("copying environment variable {0}={1!r}".format(var,os.environ[var]))
|
||||
|
||||
#Used for intro text / executable name, actual bit flags are only set if the --64bit/--32bit command line args are given
|
||||
def add32bitflags(env):
|
||||
@ -377,7 +377,7 @@ if GetOption('clean'):
|
||||
try:
|
||||
shutil.rmtree("generated/")
|
||||
except:
|
||||
print "couldn't remove build/generated/"
|
||||
print("couldn't remove build/generated/")
|
||||
elif not GetOption('help'):
|
||||
conf = Configure(env)
|
||||
conf.AddTest('CheckFramework', CheckFramework)
|
||||
|
@ -9,14 +9,14 @@ if GetOption('clean'):
|
||||
try:
|
||||
shutil.rmtree(".sconf_temp/")
|
||||
except:
|
||||
print "couldn't remove .sconf_temp/"
|
||||
print("couldn't remove .sconf_temp/")
|
||||
|
||||
try:
|
||||
shutil.rmtree("generated/")
|
||||
except:
|
||||
print "couldn't remove generated/"
|
||||
print("couldn't remove generated/")
|
||||
|
||||
try:
|
||||
os.remove(".sconsign.dblite")
|
||||
except:
|
||||
print "couldn't remove .sconsign.dblite"
|
||||
print("couldn't remove .sconsign.dblite")
|
||||
|
Loading…
Reference in New Issue
Block a user