开发者

how to make package for my python project

开发者 https://www.devze.com 2023-01-22 04:16 出处:网络
I have a python project, which uses qt(UI) for user input and then creates the pdf using latex. I want to make full package of m开发者_运维问答y whole projects in some form of exe.

I have a python project, which uses qt(UI) for user input and then creates the pdf using latex. I want to make full package of m开发者_运维问答y whole projects in some form of exe.

I came to know about pyinstaller, pyexe and cx_frezer. So which one should I pick up first. My exe should run in windows 98, xp, vista and linux. So how does MiKTeX ( windows) and qt get bundle to my exe. Does I have to make different exe depending upon the operation system.

Any link for reading will be nice.


This might be a viable alternative to freeze and py2exe. Python allows compilation into bytecode. You will have to do this on all of your target platforms for specific python versions. Run in root of your project folder

python -m compileall

See http://docs.python.org/library/compileall.html for details.

After that, delete all *.py files leaving only *.pyc. Note that such compilations must work up to a specific three digits' version of python's runtime, so this is not very convenient.

0

精彩评论

暂无评论...
验证码 换一张
取 消