Include SIP's license file too

This commit is contained in:
Robin Dunn
2019-06-28 12:55:05 -07:00
parent 03ee6dcd95
commit 98ea1d87f4

View File

@@ -961,11 +961,16 @@ def updateLicenseFiles(cfg):
# Copy the license files from wxWidgets
mkpath('license')
for filename in ['preamble.txt', 'licence.txt', 'lgpl.txt', 'gpl.txt']:
copy_file(opj(cfg.WXDIR, 'docs', filename), opj('license',filename), update=1, verbose=1)
copy_file(opj(cfg.WXDIR, 'docs', filename), opj('license',filename),
update=1, verbose=1)
# Get the sip license too
copy_file(opj('sip', 'siplib', 'LICENSE'), opj('license', 'sip-license.txt'),
update=1, verbose=1)
# Combine the relevant files into a single LICENSE.txt file
text = ''
for filename in ['preamble.txt', 'licence.txt', 'lgpl.txt']:
for filename in ['preamble.txt', 'licence.txt', 'lgpl.txt', 'sip-license.txt']:
with open(opj('license', filename), 'r') as f:
text += f.read() + '\n\n'
with open('LICENSE.txt', 'w') as f: