There are lots of articles talking about how to create an executable (.exe) file from Python script on Windows 开发者_如何学Cfrom command line (by using py2exe, etc.). However, I have not had any luck finding how to make buildbot tool automatically create the executable file from Python script every time it runs.
I am running buildbot tool on Windows XP.
Is there a compile command to configure the master.cfg in buildbot to generate the python .exe file?
As Bryan Ross suggested, py2exe is a commmand line tool, that can be run just like any other, using ShellCommand
.
On the other hand, it would seen to make sense to add the ability to create a exe using py2exe to your build system, and then invoke it that way from buildbot. This has the advantage that developers and users can then get the exact same behavior as the buildbot, on their local machines.
精彩评论