support python 3 for building
python 2.6 is no longer supported git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@6921 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
09134d125e
commit
80bc65beb1
7 changed files with 26 additions and 16 deletions
|
@ -229,7 +229,7 @@ def RegServerFunc(target, source, env):
|
|||
if ret:
|
||||
raise SCons.Errors.UserError, "Unable to register %s" % target[0]
|
||||
else:
|
||||
print "Registered %s sucessfully" % target[0]
|
||||
print("Registered %s sucessfully" % target[0])
|
||||
return ret
|
||||
return 0
|
||||
|
||||
|
|
|
@ -27,7 +27,7 @@ def AddZLib(env, platform, alias='install-utils'):
|
|||
if 'ZLIB_W32_NEW_DLL' in env and env['ZLIB_W32_NEW_DLL']:
|
||||
env.DistributeW32Bin(env['ZLIB_W32_NEW_DLL'], alias=alias)
|
||||
else:
|
||||
print 'Please specify folder of zlib for Win32 via ZLIB_W32'
|
||||
print('Please specify folder of zlib for Win32 via ZLIB_W32')
|
||||
Exit(1)
|
||||
|
||||
# Avoid unnecessary configuring when cleaning targets
|
||||
|
@ -35,7 +35,7 @@ def AddZLib(env, platform, alias='install-utils'):
|
|||
if not env.GetOption('clean'):
|
||||
conf = env.Configure()
|
||||
if not conf.CheckLibWithHeader(zlib, 'zlib.h', 'c'):
|
||||
print 'zlib (%s) is missing!' % (platform)
|
||||
print('zlib (%s) is missing!' % (platform))
|
||||
Exit(1)
|
||||
|
||||
env = conf.Finish()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue