Fix build error with scons-4.4.0 version which is based on python3
[platform/upstream/iotivity.git] / extlibs / boost / SConscript
index cae1be1..729fbfc 100644 (file)
@@ -26,7 +26,7 @@ boost_bootstrap = os.path.join(boost_dir,'bootstrap.bat')
 
 if 'linux' == target_os :
     # Check for Boost libraries in /usr/boost
-    print 'TODO: Perform platform check for linux'
+    print('TODO: Perform platform check for linux')
     raise SCons.Errors.EnvironmentError('Unsupported platform')
 
 elif target_os in ['windows']:
@@ -38,11 +38,11 @@ elif target_os in ['windows']:
         if os.path.exists(boost_zip_file):
             boost_zip = boost_zip_file
         else:
-            print '*** Downloading Boost zip file (> 100MB). Please wait... ***'
+            print('*** Downloading Boost zip file (> 100MB). Please wait... ***')
             boost_zip = env.Download(boost_zip_file, boost_url)
 
         # Unzip boost
-        print '*** Unpacking boost %s zip file ... ***' % boost_version
+        print('*** Unpacking boost %s zip file ... ***' % boost_version)
         env.UnpackAll(boost_dir, boost_zip)
 
         # Rename from boost_1_60_0 -> boost
@@ -50,7 +50,7 @@ elif target_os in ['windows']:
 
     # Sanity check, in case the above method didn't work
     if not os.path.exists(boost_bootstrap):
-        print '''
+        print('''
 *********************************** Error: ****************************************
 * Please download boost from the following website:
 *
@@ -65,7 +65,7 @@ elif target_os in ['windows']:
 * ''' + boost_bootstrap + '''
 *
 ***********************************************************************************
-'''
+''')
         Exit(1)
 
 elif target_os in ['android']: