Skip to content

Commit 1cad7fc

Browse files
committed
Change syntax of print statements for python3
1 parent f48aa53 commit 1cad7fc

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

SConstruct

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ import os
33

44
#Setup default environment. This environment
55
if not 'CCDB_HOME' in os.environ:
6-
print "CCDB_HOME environment variable is not found but should be set to compile the CCDB"
7-
print "One can run 'source environment.bash' from your bash shell to automatically set environment variables"
6+
print("CCDB_HOME environment variable is not found but should be set to compile the CCDB")
7+
print("One can run 'source environment.bash' from your bash shell to automatically set environment variables")
88
exit(1)
99

1010
#Create 'default' environment. Other environments will be a copy of this one

src/Library/SConscript

+12-12
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ env = default_env.Clone() #Clone it to add library specified things
88

99
#Mac Os X requires install_name flag to be built properly
1010
if env['PLATFORM'] == 'darwin':
11-
print
12-
print "Darwin platform is detected. Setting -install_name @rpath/"+'${TARGET.file}'
11+
print()
12+
print("Darwin platform is detected. Setting -install_name @rpath/"+'${TARGET.file}')
1313
env.Append(SHLINKFLAGS = ['-install_name', '@rpath/'+'${TARGET.file}'])
1414

1515

@@ -74,17 +74,17 @@ else:
7474
#Read user flag for using mysql dependencies or not
7575
if ARGUMENTS.get("mysql","no")=="yes" or ARGUMENTS.get("with-mysql","true")=="true":
7676
#User wants mysql!
77-
print "Building CCDB using MySQL dependencies"
78-
print "To build CCDB without mysql dependencies. Run scons with 'with-mysql=false'"
79-
print ""
77+
print("Building CCDB using MySQL dependencies")
78+
print("To build CCDB without mysql dependencies. Run scons with 'with-mysql=false'")
79+
print("")
8080

8181
if not WhereIs("mysql_config"):
82-
print
83-
print "ERROR. Can't find 'mysql_config' utility which is needed to build CCDB with MySQL support."
84-
print "Two options is possible to build CCDB:"
85-
print " 1. Install mysql_config (RHEL has it in mysql-devel package, Ubuntu in libmysqlclient-dev)"
86-
print " 2. Build CCDB without MySQL dependencies (use 'mysql=no' scons flag)"
87-
print
82+
print()
83+
print("ERROR. Can't find 'mysql_config' utility which is needed to build CCDB with MySQL support.")
84+
print("Two options is possible to build CCDB:")
85+
print(" 1. Install mysql_config (RHEL has it in mysql-devel package, Ubuntu in libmysqlclient-dev)")
86+
print(" 2. Build CCDB without MySQL dependencies (use 'mysql=no' scons flag)")
87+
print()
8888
Exit()
8989

9090
mysql_sources = [
@@ -99,7 +99,7 @@ if ARGUMENTS.get("mysql","no")=="yes" or ARGUMENTS.get("with-mysql","true")=="tr
9999
env.Append(CPPDEFINES='CCDB_MYSQL')
100100
env.ParseConfig('mysql_config --libs --cflags')
101101
else:
102-
print "CCDB is being build WITHOUT MySQL support. Use 'with-mysql=true' flag to explicitly enable MySQL support"
102+
print("CCDB is being build WITHOUT MySQL support. Use 'with-mysql=true' flag to explicitly enable MySQL support")
103103

104104

105105
if ARGUMENTS.get("with-perflog","false")=="true":

0 commit comments

Comments
 (0)