Changes in setup.py [497:0ac65bf1abb7:720:09e2087e55b5]
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r497 r720 19 19 [os.path.join("locale", language, "LC_MESSAGES", 20 20 "mlx.mo")])) 21 data_files.append(("", ["logo.png", 22 "conn_grey.png", "conn_red.png", "conn_green.png"])) 21 data_files.append(("", ["logo.png", "simbrief.html", 22 "conn_grey.png", "conn_red.png", "conn_green.png", 23 "mlx_cef_caller.sh", "mlx_cef_caller_secondary.sh", 24 "mlx_cef_caller.bat", "mlx_cef_caller_secondary.bat"])) 25 23 26 if os.name=="nt": 24 27 import py2exe … … 26 29 data_files.append(("", ["logo.ico"])) 27 30 31 chromedriver = os.environ.get("CHROMEDRIVER") 32 if chromedriver: 33 data_files.append(("", [chromedriver])) 34 28 35 msvcrDir = os.environ["MSVCRDIR"] if "MSVCRDIR" in os.environ else None 29 36 if msvcrDir: 30 data_files.append(("Microsoft.VC90.CRT", glob(os.path.join(msvcrDir, "*.*")))) 37 data_files.append(("Microsoft.VC90.CRT", glob(os.path.join(msvcrDir, "*.*")))) 38 os.environ["PATH"] = os.environ["PATH"] + ";" + glob(os.path.join(msvcrDir))[0] 31 39 32 40 gtkRuntimeDir = os.environ["GTKRTDIR"] if "GTKRTDIR" in os.environ else None … … 47 55 glob(os.path.join(gtkRuntimeDir, path, "*")))) 48 56 57 cefDir = os.environ.get("CEFDIR") 58 if cefDir: 59 for fileName in ["icudt.dll", "subprocess.exe"]: 60 data_files.append(("", [os.path.join(cefDir, fileName)])) 61 62 data_files.append(("locales", 63 glob(os.path.join(cefDir, "locales", "*")))) 64 65 print data_files 66 49 67 with open("mlx-common.nsh", "wt") as f: 50 68 print >>f, '!define MLX_VERSION "%s"' % (mlx.const.VERSION) 51 69 f.close() 70 else: 71 for (dirpath, dirnames, filenames) in os.walk("patches"): 72 if filenames: 73 filenames = [os.path.join(dirpath, filename) 74 for filename in filenames] 75 data_files.append((dirpath, filenames)) 76 77 52 78 53 79 long_description="""MAVA Logger X … … 71 97 { "script" : "mlxupdate.py", 72 98 "uac_info" : "requireAdministrator"}], 73 options = { "py2exe" : { "includes": "gio, pango, atk, pangocairo ",99 options = { "py2exe" : { "includes": "gio, pango, atk, pangocairo, lxml._elementpath", 74 100 "skip_archive": True} }, 75 101 zipfile = "library/.", … … 80 106 81 107 if os.name=="nt": 108 os.rename(os.path.join(scriptdir, "dist", "library", "libcef.dll"), 109 os.path.join(scriptdir, "dist", "libcef.dll")) 82 110 mlx.update.buildManifest(os.path.join(scriptdir, "dist")) 83 111 with open(os.path.join(scriptdir, "dist", "Uninstall.conf"), "wt") as f:
Note:
See TracChangeset
for help on using the changeset viewer.