[Twisted-Python] Re: tap2ntsvc (sandbox) and py2exe 0.5.0
theller at python.net
Thu Mar 18 15:35:27 EST 2004
> Norm Petterson wrote:
> | Hi all,
> | Back in November, Cory Dodt mentioned on this list that a preliminary
> | version of tap2ntsvc was available to try out. Has anybody managed to
> | get it to work with py2exe 0.5.0?
> | Using a tap file that works fine when run with twistd (Twisted 1.2.0),
> | and using Python 2.3.3 and py2exe 0.5.0 on Windows 2000, py2exe generates:
> | error: error in setup.cfg: command 'py2exe' has no such option 'service'
> | If I'm not overlooking something obvious, I will look into it further
> | with the samples supplied with this version of py2exe. Comments
> | appreciated ;-)
Cory Dodt <corydodt at twistedmatrix.com> writes:
> To my knowledge nobody has tested it on 0.5.0 so I can only assume this is an
> API change. If so, it's not a well-documented one because the py2exe home
> page still talks about the service option as if it exists. I will have to
> investigate further. In the meantime could you open a tracker issue and
> assign it to moonfallen? Thanks.
> BTW, 0.4.x is known to work.
It's still possible to build services, and I won't argue that the
changes are well documented ;-).
In py2exe 0.5, you specify that you want to build a service by giving a
named argument 'service' to the setup() function.
Before, 'service' was a command line option (that could also be stored
in the setup.cfg file).
For py2exe 0.5, there is quite some user-provided documentation in the
wiki http://starship.python.net/crew/theller/moin.cgi/Py2Exe, and
extensive samples are included in the distribution. IIRC, the advanced
sample contains a service.
More information about the Twisted-Python