-
Notifications
You must be signed in to change notification settings - Fork 0
/
setup.py
37 lines (30 loc) · 1.66 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
'''
app builder and installer
Build binaries by running the command 'python setup.py py2exe'
Created on Feb 15, 2012
@author: andi
'''
import sys, glob
#sys.path.append("C:\\WINDOWS\\WinSxS\\x86_Microsoft.VC90.CRT_1fc8b3b9a1e18e3b_9.0.30729.1_x-ww_6f74963e")
sys.path.append("C:\\WINDOWS\\WinSxS\\x86_microsoft.vc90.mfcloc_1fc8b3b9a1e18e3b_9.0.21022.8_none_b59bae9d65014b98")
#sys.path.append("C:\\Windows\\winsxs\\amd64_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_99b61f5e8371c1d4")
# finally manually downloaded the MSVCP90.DLL and placed it into C:\Python27\lib\site-packages\Pythonwin\ for to fix the DLL not found error.
# more paths on my VM (not tested):
# x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.21022.8_none_bcb86ed6ac711f91
# x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.1_none_e163563597edeada
# x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4148_none_5090ab56bcba71c2
# x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4926_none_508ed732bcbc0e5a
# x86_microsoft.vc90.crt_1fc8b3b9a1e18e3b_9.0.30729.4940_none_50916076bcb9a742
from distutils.core import setup
import py2exe
# If run without args, build executables, in quiet mode.
if len(sys.argv) == 1:
sys.argv.append("py2exe")
from app_const import APP_TITLE, APP_VERSION
setup(name = APP_TITLE,
version = APP_VERSION,
windows = [ dict(script = "PriceCalcTrans.py") ],
options = dict(py2exe = dict(includes = [ "sip" ])),
data_files = [ ("imageformats", glob.glob(sys.prefix + "/Lib/site-packages/PyQt4/plugins/imageformats/*.dll")),
("", ["PriceCalcTrans.jpg", "PriceCalcTrans.cfg", "uigrabber.ahk", "AutoHotKey_Startup.bat", "readme.txt"]) ],
)