サードパーティのファイルを含むPythonモジュールでpy2exeアセンブリを作成する

簡潔にするために、「非標準」という指定を導入します-この用語では、* .py以外のファイルを含むモジュールをさらに意味します。 たとえば、ライブラリ(* .pyd)、写真、アイコンなどです。



最初の問題は、 py2exebbfreezecx_Freezeなどのpythonアプリケーションのバイナリ「ディストリビューション」のコレクターのほとんどすべてが、そのようなモジュールから* .pyファイルのみを取得することです。 2番目の問題は、 ETSなどの複雑な名前空間モジュールで発生します。多くの場合、コレクターはすべての内部依存関係を正しく解析できません。



具体的には、私の場合、すべてのETSモジュール(mayavi、chacoなど)、 m2cryptovtkh5pymatplotlib 、およびその他のいくつかはつまずきのブロックであることが判明しました(一般的に、多くのそのようなモジュールがあります)。



さまざまなコレクターをテストしてみましたが、最初はcx_Freeze、tkに落ち着きました。 彼は、ETSを「箱から出して」多少なりとも正しくインポートする方法を知っている唯一の人です。 しかし、それは不十分であることが判明しました:彼は、他の多くの理由だけでなく、他の非標準モジュールにも対処できませんでした(たとえば、コンソールウィンドウを非表示にしたり、カスタムアイコンを配置したりできませんでした)。 もちろん、「レシピ」(まったく文書化されていない)のメカニズムもあります。これは、たとえばmatplotlibでも機能しますが、各モジュールに同様のレシピを書くよりも、より普遍的でシンプルなソリューションが必要でした。



結局、私はpy2exeに落ち着きました。 彼は上記の問題をすべて解決することができました。 それにはかなりの時間がかかったので、私はあなたと共有したい-たぶん誰かもそれを必要とするでしょう。



私はまだcx_Freezeを扱っていましたが、モジュールの内容を配布フォルダーにコピーするという明確なアイデアがありました。 特にcx_Freezeの場合、フォルダー自体に両方をコピーし、必要なモジュールをlibrary.zipに追加することでこれを実行しようとしましたが、そこにすべての依存モジュールを収集しましたが、これはすべて役に立ちませんでした。



py2exeを理解し始めたとき、アセンブリがフォルダー(圧縮:0、bundle_files: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 = [] )







同様の問題を解決するための選択肢を聞いてうれしいです。おそらくもっとエレガントな方法があるでしょう。



PS

py2exeのカスタマイズにより、すべてのモジュールがエッグファイルとして利用可能な場合、同じことを達成できる人もいると聞きました。



All Articles