craftsystem
Messages postés143Date d'inscriptionsamedi 21 juillet 2007StatutMembreDernière intervention 7 mars 2009
-
31 déc. 2007 à 10:49
xeolin
Messages postés336Date d'inscriptionsamedi 26 novembre 2005StatutMembreDernière intervention 8 novembre 2011
-
17 janv. 2008 à 22:49
Compiler un Script Python en Exexcutable en 2 secondes avec les Addons pour Py2exe
que j'ai Concocter en Delphi7 et Dev-Cpp
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.Mettre "Py2Exe.exe"
dans le répertoire d'installation de Python25
"C:\Python25"
3.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"])
4.Mettre "Py2Exe.exe", "setup.py" & votre Script a Compiler dans le répertoire d'installation de Python25 "C:\Python25"
5.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.
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 put “Py2Exe.exe”
in the repertory of installation of Python25
“C:\Python25”
3. 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”])
4. To put “Py2Exe.exe”, “setup.py” & your Script has Compiler in the repertory of installation of Python25 “C:\Python25”
5. 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.