рддреАрд╕рд░реЗ рдкрдХреНрд╖ рдХреА рдлрд╝рд╛рдЗрд▓реЛрдВ рд╡рд╛рд▓реЗ рдкрд╛рдпрдерди рдореЙрдбреНрдпреВрд▓ рдХреЗ рд╕рд╛рде py2.exe рдЕрд╕реЗрдВрдмрд▓рд┐рдпреЛрдВ рдХрд╛ рдирд┐рд░реНрдорд╛рдг

рд╕рдВрдХреНрд╖рд┐рдкреНрддрддрд╛ рдХреЗ рд▓рд┐рдП, рд╣рдо рдкрджрдирд╛рдо "рдЧреИрд░-рдорд╛рдирдХ" рдкреЗрд╢ рдХрд░рддреЗ рд╣реИрдВ - рдЗрд╕ рд╢рдмреНрдж рд╕реЗ рд╣рдо рдЖрдЧреЗ рдРрд╕реЗ рдореЙрдбреНрдпреВрд▓ рдХрд╛ рдЕрд░реНрде рдХрд░реЗрдВрдЧреЗ рдЬреЛ * .py рдХреЗ рдЕрд▓рд╛рд╡рд╛ рдЕрдиреНрдп рд╣реЛрддреЗ рд╣реИрдВред рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рдпрд╣ рдкреБрд╕реНрддрдХрд╛рд▓рдп (* .pyd), рдЪрд┐рддреНрд░, рдЪрд┐рд╣реНрди рдЖрджрд┐ рд╣реЛ рд╕рдХрддреЗ рд╣реИрдВред

рдкрд╣рд▓реА рд╕рдорд╕реНрдпрд╛ рдпрд╣ рд╣реИ рдХрд┐ рдЕрдЬрдЧрд░, рдЕрдиреБрдкреНрд░рдпреЛрдЧреЛрдВ рдХреЗ рдмрд╛рдЗрдирд░реА "рдбрд┐рд╕реНрдЯреНрд░реАрдмреНрдпреВрд╢рди" рдХреЗ рд▓рдЧрднрдЧ рд╕рднреА рдХрд▓реЗрдХреНрдЯрд░реЛрдВ, рдЬреИрд╕реЗ рдХрд┐ py2exe , bbfreeze , cx_Freeze рдФрд░ рдЕрдиреНрдп, рдРрд╕реЗ рдореЙрдбреНрдпреВрд▓ рд╕реЗ рдХреЗрд╡рд▓ * .py рдлрд╛рдЗрд▓реЗрдВ рд▓реЗрддреЗ рд╣реИрдВред рджреВрд╕рд░реА рд╕рдорд╕реНрдпрд╛ рдЬрдЯрд┐рд▓ рдирд╛рдо рд╕реНрдерд╛рди рдореЙрдбреНрдпреВрд▓ рдХреЗ рд╕рд╛рде рдЙрддреНрдкрдиреНрди рд╣реЛрддреА рд╣реИ, рдЬреИрд╕реЗ рдХрд┐ рдИрдЯреАрдПрд╕ - рдЕрдХреНрд╕рд░ рдХрд▓реЗрдХреНрдЯрд░ рдЕрдкрдиреЗ рд╕рднреА рдЖрдВрддрд░рд┐рдХ рдирд┐рд░реНрднрд░рддрд╛ рдХреЛ рд╕рд╣реА рдврдВрдЧ рд╕реЗ рдкрд╛рд░реНрд╕ рдирд╣реАрдВ рдХрд░ рд╕рдХрддрд╛ рд╣реИред

рд╡рд┐рд╢реЗрд╖ рд░реВрдк рд╕реЗ, рдореЗрд░реЗ рдорд╛рдорд▓реЗ рдореЗрдВ, рд╕рднреА рдИрдЯреАрдПрд╕ рдореЙрдбреНрдпреВрд▓ ( рдорд╛рдпрд╛рд╡реА , рдЪрд╛рдХреЛ , рдЗрддреНрдпрд╛рджрд┐), рдПрдо 2 рдХреНрд░рд┐рдкреНрдЯреЛ , рд╡реАрдЯреАрдХреЗ , рдПрдЪ 5 рдкреА , рдореЗрдЯрдкреНрд▓реЛрдЯрд▓рд┐рдм рдФрд░ рдХрдИ рдЕрдиреНрдп рд╕реНрдЯрдВрдмрд▓рд┐рдВрдЧ рдмреНрд▓реЙрдХ (рд╕рд╛рдорд╛рдиреНрдп рд░реВрдк рд╕реЗ, рдЬреИрд╕рд╛ рдХрд┐ рдирд┐рдХрд▓рд╛, рдмрд╣реБрдд рд╕рд╛рд░реЗ рдРрд╕реЗ рдореЙрдбреНрдпреВрд▓ рд╣реИрдВ)ред

рдореИрдВрдиреЗ рдЕрд▓рдЧ-рдЕрд▓рдЧ рдХрд▓реЗрдХреНрдЯрд░реЛрдВ рдХрд╛ рдкрд░реАрдХреНрд╖рдг рдХрд░рдиреЗ рдХреА рдХреЛрд╢рд┐рд╢ рдХреА рдФрд░ рдкрд╣рд▓реЗ cx_Freeze, tk рдкрд░ рдмрд╕рд╛ред рд╡рд╣ рдПрдХрдорд╛рддреНрд░ рдРрд╕рд╛ рд╡реНрдпрдХреНрддрд┐ рд╣реИ рдЬреЛ рдИрдЯреАрдПрд╕ рдХреЛ "рдмреЙрдХреНрд╕ рд╕реЗ рдмрд╛рд╣рд░" рдЕрдзрд┐рдХ рдпрд╛ рдХрдо рд╕рд╣реА рддрд░реАрдХреЗ рд╕реЗ рдЖрдпрд╛рдд рдХрд░рдирд╛ рдЬрд╛рдирддрд╛ рд╣реИред рд╣рд╛рд▓рд╛рдВрдХрд┐, рдпрд╣ рдЕрдкрд░реНрдпрд╛рдкреНрдд рд╣реЛ рдЧрдпрд╛: рд╡рд╣ рдЕрдиреНрдп рдЧреИрд░-рдорд╛рдирдХ рдореЙрдбреНрдпреВрд▓ рдХреЗ рд╕рд╛рде рд╕рд╛рдордирд╛ рдирд╣реАрдВ рдХрд░ рд╕рдХрд╛, рд╕рд╛рде рд╣реА рдХрдИ рдЕрдиреНрдп рдХрд╛рд░рдгреЛрдВ рд╕реЗ рднреА (рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рдореИрдВ рдХрдВрд╕реЛрд▓ рд╡рд┐рдВрдбреЛ рдХреЛ рдЫрд┐рдкрд╛рдиреЗ рдореЗрдВ рд╕рдХреНрд╖рдо рдирд╣реАрдВ рдерд╛, рдПрдХ рдХрд╕реНрдЯрдо рдЖрдЗрдХрди рдбрд╛рд▓ рджрд┐рдпрд╛, рдЖрджрд┐)ред рдмреЗрд╢рдХ, "рд╡реНрдпрдВрдЬрдиреЛрдВ" рдХреЗ рд▓рд┐рдП рдПрдХ рддрдВрддреНрд░ рд╣реИ (рдмрд┐рд▓реНрдХреБрд▓ рднреА рдкреНрд░рд▓реЗрдЦрд┐рдд рдирд╣реАрдВ рд╣реИ), рдЬреЛ рдХрд┐ рдЙрджрд╛рд╣рд░рдг рдХреЗ рд▓рд┐рдП, рдореИрдЯрдкреНрд▓реЛрдЯрд▓рд┐рдм рдХреЗ рд▓рд┐рдП рднреА рдХрд╛рдо рдХрд░рддрд╛ рд╣реИ, рд▓реЗрдХрд┐рди рдореИрдВ рдкреНрд░рддреНрдпреЗрдХ рдореЙрдбреНрдпреВрд▓ рдХреЗ рд▓рд┐рдП рдПрдХ рд╕рдорд╛рди рдиреБрд╕реНрдЦрд╛ рд▓рд┐рдЦрдиреЗ рдХреА рддреБрд▓рдирд╛ рдореЗрдВ рдЕрдзрд┐рдХ рд╕рд╛рд░реНрд╡рднреМрдорд┐рдХ рдФрд░ рд╕рд░рд▓ рд╕рдорд╛рдзрд╛рди рдЪрд╛рд╣рддрд╛ рдерд╛ред

рдЕрдВрдд рдореЗрдВ, рдореИрдВ py2exe рдкрд░ рдмрд╕ рдЧрдпрд╛, рдХреНрдпреЛрдВрдХрд┐ рд╡рд╣ рдЙрдкрд░реЛрдХреНрдд рд╕рднреА рд╕рдорд╕реНрдпрд╛рдУрдВ рдХреЛ рд╣рд▓ рдХрд░рдиреЗ рдореЗрдВ рдХрд╛рдордпрд╛рдм рд░рд╣рд╛ред рдЪреВрдВрдХрд┐ рдЗрд╕рдореЗрдВ рдХрд╛рдлреА рд╕рдордп рд▓рдЧрддрд╛ рд╣реИ, рдЗрд╕рд▓рд┐рдП рдореИрдВ рдЖрдкрдХреЗ рд╕рд╛рде рд╕рд╛рдЭрд╛ рдХрд░рдирд╛ рдЪрд╛рд╣рддрд╛ рд╣реВрдВ - рд╢рд╛рдпрдж рдХрд┐рд╕реА рдХреЛ рднреА рдЗрд╕рдХреА рдЖрд╡рд╢реНрдпрдХрддрд╛ рд╣реЛрдЧреАред

рдЬрдм рдореИрдВ рдЕрднреА рднреА cx_Freeze рдХреЗ рд╕рд╛рде рдХрд╛рдо рдХрд░ рд░рд╣рд╛ рдерд╛, рддреЛ рдПрдХ рд╕реНрдкрд╖реНрдЯ рд╡рд┐рдЪрд╛рд░ рдерд╛ - рд╡рд┐рддрд░рдг рдлрд╝реЛрд▓реНрдбрд░ рдореЗрдВ рдореЙрдбреНрдпреВрд▓ рдХреА рд╕рд╛рдордЧреНрд░реА рдХреЛ рдХреЙрдкреА рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдПред рд╡рд┐рд╢реЗрд╖ рд░реВрдк рд╕реЗ cx_Freeze рдХреЗ рд▓рд┐рдП рдореИрдВрдиреЗ рдЗрд╕реЗ рдлрд╝реЛрд▓реНрдбрд░ рдореЗрдВ рджреЛрдиреЛрдВ рдХреА рдкреНрд░рддрд┐рд▓рд┐рдкрд┐ рдмрдирд╛рдХрд░ рдФрд░ рд▓рд╛рдЗрдмреНрд░реЗрд░реА рдореЗрдВ рдЖрд╡рд╢реНрдпрдХ рдореЙрдбреНрдпреВрд▓ рдЬреЛрдбрд╝рдХрд░ рдХрд░рдиреЗ рдХреА рдХреЛрд╢рд┐рд╢ рдХреАред рдЬрд╝рд┐рдк, рдЬрд┐рд╕рдореЗрдВ рдпрд╣ рд╕рднреА рдЖрд╢реНрд░рд┐рдд рдореЙрдбреНрдпреВрд▓ рдПрдХрддреНрд░ рдХрд░рддрд╛ рд╣реИ, рд╣рд╛рд▓рд╛рдВрдХрд┐, рдпрд╣ рд╕рдм рдХреБрдЫ рдлрд╛рдпрджрд╛ рдирд╣реАрдВ рд╣реБрдЖред

рдЬрдм рдореИрдВрдиреЗ py2exe рдХреЛ рд╕рдордЭрдирд╛ рд╢реБрд░реВ рдХрд┐рдпрд╛, рддреЛ рдпрд╣ рдкрддрд╛ рдЪрд▓рд╛ рдХрд┐ рдорд╛рдкрджрдВрдбреЛрдВ рдХреЗ рдПрдХ рдирд┐рд╢реНрдЪрд┐рдд рд╕рдВрдпреЛрдЬрди рдХреЗ рд╕рд╛рде, рдЬрд┐рд╕рдореЗрдВ рдЕрд╕реЗрдВрдмрд▓реА рдПрдХ рдлрд╝реЛрд▓реНрдбрд░ рдХреЗ рд░реВрдк рдореЗрдВ рдмрдирд╛рдИ рдЧрдИ рд╣реИ (рд╕рдВрдХреБрдЪрд┐рдд: 0, рдмрдВрдбрд▓_рдлрд╛рдЗрд▓реНрд╕: 3), рдпрд╣ рдЪрд╛рд▓ рдХрд╛рдо рдХрд░рдирд╛ рд╢реБрд░реВ рдХрд░ рджреЗрддреА рд╣реИред рдРрд╕рд╛ рд▓рдЧрддрд╛ рд╣реИ рдХрд┐ рдЗрд╕ рдорд╛рдорд▓реЗ рдореЗрдВ py2exe рдЕрдВрддрд░реНрдирд┐рд╣рд┐рдд рдПрдкреНрд▓рд┐рдХреЗрд╢рди рдлрд╝реЛрд▓реНрдбрд░ рдХреЛ рдЕрдВрддрд░реНрдирд┐рд╣рд┐рдд рджреБрднрд╛рд╖рд┐рдпрд╛ рдХреЗ PYTHONPATH рдореЗрдВ рдЬреЛрдбрд╝рддрд╛ рд╣реИ, рдЬрд┐рд╕рдХреЗ рдмрд╛рдж рдЗрд╕рдХреА рдкреНрд░рддрд┐рд▓рд┐рдкрд┐ рдмрдирд╛рдИ рдЧрдИ рд╕рдм рдХреБрдЫ рд╕рдлрд▓рддрд╛рдкреВрд░реНрд╡рдХ рдЖрдпрд╛рдд рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИред

рдореЙрдбреНрдпреВрд▓ рдХреЛ рдХреЙрдкреА рдХрд░рдирд╛ рдЖрд╕рд╛рдиреА рд╕реЗ distutils.dir_util рдкреИрдХреЗрдЬ рд╕реЗ copy_tree рдлрд╝рдВрдХреНрд╢рди рдХреЗ рдорд╛рдзреНрдпрдо рд╕реЗ рдХрд┐рдпрд╛ рдЬрд╛рддрд╛ рд╣реИ, рдФрд░ рдореЙрдбреНрдпреВрд▓ рдХреЗ рдорд╛рдзреНрдпрдо рд╕реЗ рдореЙрдбреНрдпреВрд▓ рдХреЗ рд▓рд┐рдП рдкрде рдкреНрд░рд╛рдкреНрдд рдХрд░ рд░рд╣рд╛ рд╣реИ ред__ path__ рдЪрд░ред

ETS, vtk, m5crypto, рдФрд░ 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 = [] )


рдореБрдЭреЗ рдЗрд╕реА рддрд░рд╣ рдХреА рд╕рдорд╕реНрдпрд╛ рдХреЛ рд╣рд▓ рдХрд░рдиреЗ рдХреЗ рд▓рд┐рдП рдЖрдкрдХреЗ рд╡рд┐рдХрд▓реНрдк рд╕реБрдирдиреЗ рдореЗрдВ рдЦреБрд╢реА рд╣реЛрдЧреА, рд╢рд╛рдпрдж рдПрдХ рдФрд░ рдЕрдзрд┐рдХ рд╕реБрдВрджрд░ рддрд░реАрдХрд╛ рд╣реИред

рдкреБрдирд╢реНрдЪ
рдореИрдВрдиреЗ рд╕реБрдирд╛ рд╣реИ рдХрд┐ рдХреБрдЫ рдПрдХ рд╣реА рдЪреАрдЬ рдХреЛ рдкреНрд░рд╛рдкреНрдд рдХрд░рдиреЗ рдореЗрдВ рд╕рдХреНрд╖рдо рдереЗ рдЬрдм рд╕рднреА рдореЙрдбреНрдпреВрд▓ рдЕрдВрдбреЗ-рдлрд╛рдЗрд▓реЛрдВ рдХреЗ рд░реВрдк рдореЗрдВ рдЙрдкрд▓рдмреНрдз рд╣реЛрддреЗ рд╣реИрдВ, рдХреБрдЫ рдкреА 2 рдПрдХреНрд╕ рдЕрдиреБрдХреВрд▓рди рджреНрд╡рд╛рд░рд╛ред

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


All Articles