简体   繁体   English

如何使用XRC进行两阶段创建,使PyInstaller在wxPython上工作?

[英]How to make PyInstaller work on wxPython using 2 stage creation with XRC?

Everyone suggests switch from py2exe to PyInstaller for making a standalone executable from Python scripts. 每个人都建议从py2exe切换到PyInstaller,以便从Python脚本制作独立的可执行文件。 Our first trial is to make a wxPython application which makes usage of lots of 2 stage creation with XRC . 我们的第一个试验是制作一个wxPython应用程序,该应用程序利用XRC大量使用了两个阶段 It seems the building process of PyInstaller doesn't include those modules specified in .xrc files and I am wondering if we can utilize hidden imports feature or other alternatives. 似乎PyInstaller的构建过程不包括.xrc文件中指定的那些模块,我想知道我们是否可以利用隐藏的导入功能或其他替代方法。 Any ideas? 有任何想法吗?

You might find this helpful: http://www.blog.pythonlibrary.org/2010/08/10/a-pyinstaller-tutorial-build-a-binary-series/ 您可能会发现这很有帮助: http : //www.blog.pythonlibrary.org/2010/08/10/a-pyinstaller-tutorial-build-a-binary-series/

PyInstaller's documentation also explains how to include and exclude stuff: PyInstaller的文档还说明了如何包括和排除内容:

http://www.pyinstaller.org/export/latest/tags/1.4/doc/Manual.html?format=raw#create-a-spec-file-for-your-project http://www.pyinstaller.org/export/latest/tags/1.4/doc/Manual.html?format=raw#create-a-spec-file-for-your-project

My guess is you need to explicitly include wx.xrc 我的猜测是您需要明确包含wx.xrc

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM