How to run GUI2Exe from command line?
I'm using GUI2Exe to CX_freeze my python app, which is working great... if I want to build it manually.
My next step is to automate this build, so I can build in one step
Is there a way to use the exported setup.py to build? or to call GUI2Exe with some command line parameters to build the project?
Thanks!
Update: So I ran the command manually following the suggestions below: Here's the difference:
- library.zip is different, size off by 11 bytes
- {app}.zip is different, same size
- missing {app}.ma开发者_C百科nifest
Would you be comfortable that they are the same?
As its homepage says, GUI2Exe is just a GUI around different python exe builders, so I guess you should just use your tool of choice directly. As for cx_Freeze, you could find the description of its setup.py
options in its manual http://cx-freeze.sourceforge.net/cx_Freeze.html#distutils-setup-script.
GUI2Exe is just a wrapper around various binary builders. In the case of py2exe, there's a menu item where you can actually view the setup.py file that GUI2Exe generates. There you'll see what extra things it does. And no, you cannot run it via the command line unless you mean just running the python file itself (i.e. python GUI2Exe.py). It's not a command line utility.
python setup.py build
should be the only command you need. What's the difference in the results?
精彩评论