Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / tools / scons / BoostBuild.py
index b0d53e0..749d418 100644 (file)
@@ -35,7 +35,7 @@ import SCons.Builder, SCons.Node, SCons.Errors
 # @param source source name
 # @param env environment object
 def __message( s, target, source, env ) :
-    print "building boost from [%s] for ..." % (source[0])
+    print("building boost from [%s] for ..." % (source[0]))
 
 
 # Create the builder action which constructs a user-config.jam based
@@ -132,7 +132,7 @@ def __action( target, source, env ) :
     devnull = open(os.devnull, "wb")
     handle  = subprocess.Popen( cmd, env=penv, cwd=cwd ) #, stdout=devnull )
 
-    if handle.wait() <> 0 :
+    if handle.wait() != 0 :
         raise SCons.Errors.BuildError( "Building boost [%s] on the source [%s]" % (cmd, source[0])  )
 
 # Define the emitter of the builder