Creating MSI with cx_freeze and bdist_msi for PySide app

烂漫一生 提交于 2019-12-03 08:25:24

I posted the same question on the cx-freeze mailing list, and received an answer.

The 'includes' and 'packages' options are for the 'build_exe' command, so the call to setup needs to include both commands.

bdist_msi_options = {
    'upgrade_code': '{66620F3A-DC3A-11E2-B341-002219E9B01E}',
    'add_to_path': False,
    'initial_target_dir': r'[ProgramFilesFolder]\%s\%s' % (company_name, product_name),
    }

build_exe_options = {
    'includes': ['atexit', 'PySide.QtNetwork'],
    }

...

setup(name=product_name,
      version='1.0.0',
      description='blah',
      executables=[exe],
      options={
          'bdist_msi': bdist_msi_options,
          'build_exe': build_exe_options})
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!