Delete extra data dirs that cause problems for WiX.

pull/8038/head
Jussi Pakkanen 4 years ago
parent 5d36d2905f
commit 793175f665
  1. 9
      packaging/createmsi.py

@ -176,6 +176,7 @@ class PackageGenerator:
pyinst_cmd += ['meson.py']
subprocess.check_call(pyinst_cmd)
shutil.move(pyinstaller_tmpdir + '/meson', main_stage)
self.del_infodirs(main_stage)
if not os.path.exists(os.path.join(main_stage, 'meson.exe')):
sys.exit('Meson exe missing from staging dir.')
os.mkdir(ninja_stage)
@ -183,6 +184,14 @@ class PackageGenerator:
if not os.path.exists(os.path.join(ninja_stage, 'ninja.exe')):
sys.exit('Ninja exe missing from staging dir.')
def del_infodirs(self, dirname):
# Starting with 3.9.something there are some
# extra metadatadirs that have a hyphen in their
# file names. This is a forbidden character in WiX
# filenames so delete them.
for d in glob(os.path.join(dirname, '*-info')):
shutil.rmtree(d)
def generate_files(self):
'''
Generate package files for MSI installer package

Loading…
Cancel
Save