1.Installer "python-2.5.1.msi" si vous ne l'avez pas encore fait
et "py2exe-0.6.6.win32-py2.5.exe" dans l'ordre.
2.générer un fichier "setup.py" avec "SetupPyGenerate.exe"
il vous demanderas un nom de fichier *.py donc
indiquer le nom du fichier que vous voulez compiler
Dans le fichier "setup.py":
from distutils.core import setup
import py2exe
setup(console=["nom du fichier a compiler.py"])
3.Mettre "Py2Exe.exe", "setup.py" & votre Script a Compiler dans le répertoire d'installation de Python25 "C:\Python25"
4.Executer "Py2Exe.exe" une fois le processus terminer
une fenetre s'ouvre a l'endroit ou votre Executable
à été créer
Ps:Je vous est mis toute mes sources Delphi, Dev-Cpp, Batch.
download src+bin
=============================================================
1. To install "python-2.5.1.msi" if you did not do it yet
and "py2exe-0.6.6.win32-py2.5.exe" in the order.
2. to generate a file "setup.py" with "SetupPyGenerate.exe"
he will thus ask you a file name *.py
to indicate the name of the file which you want to compile
In the file "setup.py":
from distutils.core import setup
import py2exe
setup (console= ["name of the file has compiler.py"])
3. To put "Py2Exe.exe", "setup.py" & your Script has Compiler in the repertory of installation of Python25 "C:\Python25"
4. To carry out "Py2Exe.exe" once the process to finish
a window opens with the place or your Achievable
at summer to create
PS: I to you am put all my sources Delphi, Dev.-CP, Batch.
download src+bin