I\'m trying to write a windows Service in python, but the tricky part is i want to deploy it on a machine that doesn\'t have python. I\'ve successfully created a service like th
I've edited the Win32Service.c
in the cx_freeze
src for python3
support
Edited it with some preprocessor commands, for python2 support too (but not tested for python2 yet)
cx_freeze
from pypi and extract itcx_freeze-4.3.4
directoryWin32Service.c
file in cx_Freeze-4.3.4\source\bases
with my edited versionsetup.py
from if moduleInfo is not None and sys.version_info[:2] < (3, 0):
to if moduleInfo is not None:
python setup.py build
in cx_freeze-4.3.4
directory (you must have MSC installed to compile the C source files)cx_Freeze-4.3.4\build\lib.win32-3.4\cx_Freeze\bases\Win32Service.exe
to C:\Python34\Lib\site-packages\cx_Freeze\bases
(or the path where your python3 is installed)Win32Service
base (no more the cx_Freeze.freezer.ConfigError: no base named Win32Service
error)