Created
June 11, 2014 21:09
-
-
Save DoctorMalboro/f74e16fc162b92fe8ba6 to your computer and use it in GitHub Desktop.
setup.py for py2exe app
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import sys | |
from glob import glob | |
from distutils.core import setup | |
import py2exe | |
sys.path.append("C:\\Program Files\\Microsoft Visual Studio 9.0\\VC\\redist\\x86\\Microsoft.VC90.CRT") | |
data_files = [ | |
("Microsoft.VC90.CRT", glob(r'C:\Program Files\Microsoft Visual Studio 9.0\VC\redist\x86\Microsoft.VC90.CRT\*.*'))] | |
setup( | |
windows=['../main.py'], | |
includes=['sys', 'glob', 'os', 'datetime', 'webbrowser', 'PySide.QtGui', 'PySide.QtCore'], | |
data_files=data_files, | |
ddl_excludes=['MSVCP90.dll', 'HID.DLL', 'w9xpopen.exe'], | |
optimize=2 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment