【问题标题】:Using esky with GUI program?将 esky 与 GUI 程序一起使用?
【发布时间】:2013-08-31 15:18:58
【问题描述】:

我有一个用 python 编写并使用py2exe 打包的 GUI 程序。我现在想使用Esky 来允许自动更新。

但是,当我运行python setup.py bdist_esky 时,我收到以下错误:

RuntimeError: don't call setup(windows=[...]) with esky; use setup(scripts=[...]) instead

当更改为scripts 时,我收到以下错误:

TypeError: Must specify name if script is not a file

我无法摆脱它。有什么帮助吗?

(setup.py:http://pastebin.com/B3yGJERq)

【问题讨论】:

    标签: python python-2.7 py2exe distutils esky


    【解决方案1】:

    Scripts 应该是esky.bdist_esky.Exectuable 实例的列表。

    这里是代码示例:http://mastr-ms.googlecode.com/hg-history/39af8165be80344a30603e0ff74acdded72193b0/madas/mdatasync_client/client/setup.py

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-09-27
      • 1970-01-01
      • 2020-02-28
      • 2023-03-06
      • 1970-01-01
      • 1970-01-01
      • 2011-12-17
      • 2014-03-20
      相关资源
      最近更新 更多