victor@2: from distutils.core import setup victor@2: import sys victor@2: import py2exe victor@2: import numpy victor@2: victor@2: victor@2: victor@2: from glob import glob victor@2: data_files = [("Microsoft.VC90.CRT", glob(r'C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))] victor@2: sys.path.append("C:\\Program Files (x86)\\Microsoft Visual Studio 9.0\\VC\\redist\\x86\\Microsoft.VC90.CRT") victor@2: victor@2: setup( victor@2: data_files=data_files, victor@2: victor@2: console=['mainGDI.py'], victor@2: victor@2: )