scons: use python3-compatible print()
These changes were generated using python's `2to3` tool. Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102852 Reported-by: Alex Granni <liviuprodea@yahoo.com> Signed-off-by: Eric Engestrom <eric.engestrom@imgtec.com> Reviewed-by: Jose Fonseca <jfonseca@vmware.com>
This commit is contained in:
+1
-1
@@ -30,7 +30,7 @@ def write_git_sha1_h_file(filename):
|
||||
try:
|
||||
subprocess.Popen(args, stdout=f).wait()
|
||||
except:
|
||||
print "Warning: exception in write_git_sha1_h_file()"
|
||||
print("Warning: exception in write_git_sha1_h_file()")
|
||||
return
|
||||
|
||||
if not os.path.exists(filename) or not filecmp.cmp(tempfile, filename):
|
||||
|
||||
@@ -4,7 +4,7 @@ import distutils.version
|
||||
Import('*')
|
||||
|
||||
if not env['llvm']:
|
||||
print 'warning: LLVM disabled: not building llvmpipe'
|
||||
print('warning: LLVM disabled: not building llvmpipe')
|
||||
Return()
|
||||
|
||||
env = env.Clone()
|
||||
|
||||
@@ -5,7 +5,7 @@ env = env.Clone()
|
||||
env.MSVC2013Compat()
|
||||
|
||||
if env['suncc']:
|
||||
print 'warning: not building svga'
|
||||
print('warning: not building svga')
|
||||
Return()
|
||||
|
||||
env.Append(CPPDEFINES = [
|
||||
|
||||
@@ -8,12 +8,12 @@ if not env['swr']:
|
||||
Return()
|
||||
|
||||
if not env['llvm']:
|
||||
print 'warning: LLVM disabled: not building swr'
|
||||
print('warning: LLVM disabled: not building swr')
|
||||
env['swr'] = False
|
||||
Return()
|
||||
|
||||
if env['LLVM_VERSION'] < distutils.version.LooseVersion('3.9'):
|
||||
print "warning: swr requires LLVM >= 3.9: not building swr"
|
||||
print("warning: swr requires LLVM >= 3.9: not building swr")
|
||||
env['swr'] = False
|
||||
Return()
|
||||
|
||||
@@ -28,7 +28,7 @@ if env['platform'] == 'windows':
|
||||
else:
|
||||
llvm_config = os.environ.get('LLVM_CONFIG', 'llvm-config')
|
||||
llvm_includedir = env.backtick('%s --includedir' % llvm_config).rstrip()
|
||||
print "llvm include dir %s" % llvm_includedir
|
||||
print("llvm include dir %s" % llvm_includedir)
|
||||
|
||||
if not env['msvc'] :
|
||||
env.Append(CCFLAGS = [
|
||||
|
||||
@@ -3,7 +3,7 @@ Import('*')
|
||||
env = drienv.Clone()
|
||||
|
||||
if env['suncc']:
|
||||
print 'warning: not building dri-vmwgfx'
|
||||
print('warning: not building dri-vmwgfx')
|
||||
Return()
|
||||
|
||||
env.Append(CPPPATH = [
|
||||
|
||||
Reference in New Issue
Block a user