catalpainternational / HarukaSMS

12 stars 3 forks source link

Create Windows EXE w/ bundled python interpreter #8

Closed macdhuibh closed 12 years ago

macdhuibh commented 12 years ago

Currently the Windows installation requires the user to install Python first. Perhaps we could py2exe to create a Windows executable which includes Python.

nicolasH commented 12 years ago

py2exe is misdirecting.

py2exe is a Python Distutils extension which converts Python scripts into executable Windows programs, able to run without requiring a Python installation.

But, from the doc:

1: The Python interpreter was compiled using Microsoft Visual C, so your new program needs the Microsoft Visual C runtime DLL to run. If you have installed appropriate versions of Python or Visual Studio, then you will already have this DLL on your computer. If some of your users might not already have this DLL, then they will not be able to run your program. The methods you may use to solve this depend on the version of Python you are using ...

.... .... ....

2 If you don't have rights to redistribute MSVCR90.dll, then your users may install it on their machine by running the Microsoft Visual C++ 2008 Redistributable Package (vcredist_x86.exe). It is important not to use the SP1 version of this installer, which contains the wrong version of MSVCR90.dll.

Source: http://www.py2exe.org/index.cgi/Tutorial