I have successfully converted my python project to a service. When using the usual options of install and start/stop, everything works correctly. However, I wish to compile th
You will find an example in the py2exe package, look in site-packages\py2exe\samples\advanced.
You setup.py file should contain
setup(service=["webserver.py"])
as shown in the "old" py2exe docs