Skip to content

Commit

Permalink
Change syntax of print statements for python3
Browse files Browse the repository at this point in the history
  • Loading branch information
aaust committed Jan 23, 2024
1 parent f48aa53 commit 1cad7fc
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import os

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

#Create 'default' environment. Other environments will be a copy of this one
Expand Down
24 changes: 12 additions & 12 deletions src/Library/SConscript
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ env = default_env.Clone() #Clone it to add library specified things

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


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

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

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


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

0 comments on commit 1cad7fc

Please sign in to comment.