masklinn í dag viðrar vel til loftárása | en fait tu as fait un peu différement de ma proposition: il est possible de demander (dans le script de génération de l'exe) de demander à py2exe d'inclure certains package, histoire d'être sur qu'il ne les oublie pas (normalement il récupère tous les packages linkés par un import, mais c'est pas systématique)
un truc du genre
Code :
- import sys
- assert sys.version >= '2', "Install Python 2.0 or greater"
- from distutils.core import setup
- import py2exe
- import os
- setup(
- # The first three parameters are not required, if at least a
- # 'version' is given, then a versioninfo resource is built from
- # them and added to the executables.
- version = "0.0.5",
- description = "truc",
- name = "machin",
- # targets to build
- windows = [ {'script': "Browser.py",
- 'icon_resources': [ (1, 'Icon.ico')],
- 'excludes': ["pywin", "pywin.debugger", "pywin.debugger.dbgcon", "pywin.dialogs", "pywin.dialogs.list","Tkconstants","Tkinter","tcl"] ,}],
- options = {"py2exe": {"compressed": 1,"optimize": 2}},
- )
|
mais avec des includes au lieu du excludes quoi (il y a pas mal de tutos py2exe) Message édité par masklinn le 31-08-2004 à 16:32:19 ---------------
I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing?
|