Permalink
Browse files

make print statements python 3 compatible

  • Loading branch information...
jacob1 committed Oct 4, 2017
1 parent 17c9340 commit 1c275e943fd84a324c68f658aea6834b590369a0
Showing with 9 additions and 9 deletions.
  1. +6 −6 SConscript
  2. +3 −3 SConstruct
@@ -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,15 +137,15 @@ 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:
if var in env:
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")

0 comments on commit 1c275e9

Please sign in to comment.