On 4/11/13 9:21 AM, Don Dwiggins wrote:
On 4/11/13 5:09 AM, Martin Zibricky wrote:
A winodws service is a not well maintained area in pyinstaller:
- I have never used it myself.
- Not sure how it should work.
- Not sure if this feature of pyinstaller still works.

OK. If I can't beat py2exe into submission, and nobody else speaks up here, I may try to tackle this.

Here's a followup that might be useful, in case anyone decides to tackle this.

I've finally gotten to the root of the problem with py2exe, guided by Mark Hammond. In the process, I've learned more than I ever wanted to know about how Python-written services work. I'm not going to take on porting what I know to PyInstaller -- I just don't have the time. However, here's what I'd suggest for someone who does have the time and passion for it:

 * Get a copy of "Python Programming on Win32", by Hammond & Robinson;
study Chapter 18, specifically the sections on writing services. (You might find the relevant material online.)
 * Get py2exe and pywin32.  Study the modules py2exe.boot_service and
   win32service,win32serviceutil.
 * Using "vanilla" PyInstaller, try to fold boot_service (or the
   relevant code from it) into a simple service that will successfully
   install, start, serve, stop, and remove (the basic Service Manager
   functions).
 * With success there, come up with a combination of stuff folded into
   PyInstaller itself, and a template for writing services that can be
   frozen with PyInstaller.

Hope this helps someone sometime,

--

Don Dwiggins
Advanced Publishing Technology

--
You received this message because you are subscribed to the Google Groups 
"PyInstaller" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pyinstaller?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to