Creating fewer files when freezing a Python application

爷,独闯天下 提交于 2019-12-07 17:20:31

问题


I'm using cxFreeze to freeze my Python application. All seems to be working as expected but peering into the build directory got me thinking...

Is there a way I could have fewer files in the build directory?

Currently, there's a bunch of PYD files and the necessary DLL files lying around. Then I have some configuration files (custom) and the rest of the stuff is thrown into a library.zip file. Is there a way I could bundle pretty much everything into the library.zip file so I could have fewer files in there?

(This seems to be more a-nice-clean-directory fetish than a real "issue" but nonetheless, sometimes you've just got to fulfill the curiosity/fetish)

Thanks a ton guys (in advance).


回答1:


PyInstaller is cross-platform too, and has more features than cx_Freeze, but doesn't support Python 3. See also py2exe - generate single executable file.



来源:https://stackoverflow.com/questions/3241325/creating-fewer-files-when-freezing-a-python-application

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!