📜 ⬆️ ⬇️

Creating py2exe builds with Python modules containing third-party files

For brevity, we introduce the notation “non-standard” - by this term we will further mean such modules that contain files other than * .py. For example, these could be libraries (* .pyd), pictures, icons, etc.

The first problem is that virtually all binary “distributions” of python applications, such as py2exe , bbfreeze , cx_Freeze , and others, take only * .py files from such modules. The second problem occurs with complex namespace modules, such as ETS — often the builder cannot properly disassemble all their internal dependencies.

Specifically, in my case, the stumbling blocks were all ETS modules (mayavi, chaco, etc.), m2crypto , vtk , h5py , matplotlib, and several others (in general, as it turned out, there are a lot of such modules).
')
I tried to test different collectors and at first I stopped at cx_Freeze, because he is the only one who can more or less correctly import ETS out of the box. However, it was not enough: he could not cope with other non-standard modules, as well as for several other reasons (for example, I could not hide the console window, put a custom icon, etc.). Of course, there is a “recipe” mechanism (not documented at all) that even works, for example, for matplotlib, but I wanted a more universal and simple solution than writing a similar recipe for each module.

As a result, I stopped at py2exe, because he managed to solve all the above problems. Since it took quite considerable time, I want to share with you - maybe someone will need it too.

While I was still dealing with cx_Freeze, an obvious idea arose - copy the contents of the module to the distribution folder. Specifically for cx_Freeze, I tried to do this by copying both into the folder itself and by adding the necessary modules to library.zip, into which it collects all the dependent modules, however, it all went to no avail.

When I started to deal with py2exe, it turned out that with a certain combination of parameters in which the assembly is created as a folder (compressed: 0, bundle_files: 3), this trick starts to work. It seems that py2exe in this case adds the current application folder to the PYTHONPATH built-in interpreter, after which everything copied into it is successfully imported.

Copying a module is easiest to do through the copy_tree function from the distutils.dir_util package, and getting the path to the module is through the variable module .__ path__.

Below is a working example for ETS, vtk, m5crypto and h5py:

Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  1. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  2. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  3. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  4. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  5. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  6. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  7. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  8. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  9. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  10. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  11. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  12. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  13. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  14. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  15. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  16. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  17. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  18. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  19. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  20. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  21. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  22. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  23. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  24. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  25. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  26. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  27. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  28. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  29. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  30. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  31. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  32. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  33. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  34. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  35. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  36. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  37. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  38. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  39. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  40. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  41. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  42. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  43. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  44. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  45. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  46. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  47. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  48. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  49. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  50. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  51. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  52. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  53. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  54. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  55. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  56. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  57. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  58. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  59. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  60. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  61. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  62. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  63. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  64. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  65. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  66. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  67. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  68. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  69. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  70. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  71. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  72. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  73. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  74. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  75. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  76. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  77. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  78. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  79. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  80. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  81. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )
  82. Copy Source | Copy HTML from distutils .core import setup from distutils .dir_util import copy_tree from py2exe.build_exe import py2exe import glob import os import zlib import shutil import time import shutil import enthought.tvtk import enthought.mayavi import vtk import sys import M2Crypto import h5py ############## distDit = "my_app_builded_folder" ############## class Target (object): """ A simple class that holds information on our executable file. """ def __init__ (self, **kw): """ Default class constructor. Update as you need. """ self . __dict__ .update(kw) # ETS and VTK tvtkPath = os .path.join( os .path.join(distDir, "enthought" ), "tvtk" ) copy_tree(enthought.tvtk.__path__[ 0 ], tvtkPath ) mayaviPath = os .path.join( os .path.join(distDir, "enthought" ), "mayavi" ) copy_tree(enthought.mayavi.__path__[ 0 ], mayaviPath ) vtkPath = os .path.join( distDir, "vtk" ) copy_tree(vtk.__path__[ 0 ], vtkPath ) # M2Crypto m2CryptoPath = os .path.join( distDir, "M2Crypto" ) copy_tree(M2Crypto.__path__[ 0 ], m2CryptoPath ) # h5Py h5pyPath = os .path.join( distDir, "h5py" ) copy_tree(h5py.__path__[ 0 ], h5pyPath ) includes = [ 'enthought' , 'vtk' , 'M2Crypto' , 'h5py' ] excludes = [ '_gtkagg' , '_tkagg' , 'bsddb' , 'curses' , 'email' , 'pywin.debugger' , 'pywin.debugger.dbgcon' , 'pywin.dialogs' , 'tcl' , 'Tkconstants' , 'Tkinter' ] packages = [ 'enthought' , 'vtk' ] dll_excludes = [ 'libgdk-win32-2.0-0.dll' , 'libgobject-2.0-0.dll' , 'tcl84.dll' , 'tk84.dll' ] data_files = [] icon_resources = [] bitmap_resources = [] other_resources = [] MyApp_Target = Target ( # what to build script = "run.py" , icon_resources = icon_resources, bitmap_resources = bitmap_resources, other_resources = other_resources, dest_base = "my_app" , version = "0.1.0" , company_name = "My Company" , copyright = "My Company" , name = "My App" , ) setup( data_files = data_files, options = { "py2exe" : { "compressed" : 0 , "optimize" : 1 , "includes" : includes, "excludes" : excludes, "packages" : packages, "dll_excludes" : dll_excludes, "bundle_files" : 3 , "dist_dir" : distDir, "xref" : False, "skip_archive" : True, "ascii" : False, "custom_boot_script" : '' , } }, zipfile = r 'library.zip' , console = [], windows = [MyApp_Target], service = [], com_server = [], ctypes_com_server = [] )


I will be glad to hear your solutions to this problem, perhaps there is a more elegant method.

PS
I heard that some were able to achieve the same, when all modules are available as egg-files, by some customization of py2exe.

Source: https://habr.com/ru/post/117686/


All Articles