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
|
@ -81,20 +81,20 @@ if env['PLATFORM'] != 'win32' and WhereIs('wx-config') or \
|
|||
nsis_menu[0].env.ParseConfig('wx-config --cxxflags --libs')
|
||||
|
||||
# install menu files
|
||||
|
||||
env.DistributeMenu(html, alias='install-utils')
|
||||
env.DistributeMenu(images, path='images', alias='install-utils')
|
||||
if env['PLATFORM'] != 'win32':
|
||||
env.DistributeBin(resources);
|
||||
|
||||
else:
|
||||
|
||||
|
||||
env.DistributeMenu(html, alias='install-utils')
|
||||
env.DistributeMenu(images, path='images', alias='install-utils')
|
||||
if env['PLATFORM'] != 'win32':
|
||||
env.DistributeBin(resources);
|
||||
|
||||
else:
|
||||
|
||||
# no wxWidgets
|
||||
def err(target, source, env):
|
||||
if env['PLATFORM'] == 'win32':
|
||||
print '*** error: WXWIN must be set to build NSIS Menu!'
|
||||
print('*** error: WXWIN must be set to build NSIS Menu!')
|
||||
else:
|
||||
print '*** error: wx-config must be in the PATH to build NSIS Menu!'
|
||||
print('*** error: wx-config must be in the PATH to build NSIS Menu!')
|
||||
return 1
|
||||
|
||||
cmd = env.Command(target, files, Action(err, ''))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue