Changeset 37:a9637d8e2ea0 for setup.py
- Timestamp:
- 03/04/12 08:58:27 (12 years ago)
- Branch:
- default
- hg-Phase:
- (<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
setup.py
r36 r37 6 6 from distutils.core import setup 7 7 8 sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), "src")) 8 scriptdir=os.path.dirname(sys.argv[0]) 9 sys.path.insert(0, os.path.join(scriptdir, "src")) 9 10 10 11 import mlx.const 12 import mlx.update 11 13 12 14 data_files = [] … … 23 25 if gtkRuntimeDir: 24 26 path = os.path.join("lib", "gtk-2.0", "2.10.0", "engines") 25 data_files.append((path, [os.path.join(gtkRuntimeDir, path, "libwimp.dll")])) 27 data_files.append((os.path.join("library", path), 28 [os.path.join(gtkRuntimeDir, path, "libwimp.dll")])) 26 29 27 30 path = os.path.join("share", "themes", "MS-Windows", "gtk-2.0") 28 data_files.append((path, glob(os.path.join(gtkRuntimeDir, path, "*")))) 31 data_files.append((os.path.join("library", path), 32 glob(os.path.join(gtkRuntimeDir, path, "*")))) 29 33 30 34 with open("mlx-common.nsh", "wt") as f: … … 52 56 { "script" : "mlxupdate.py", 53 57 "uac_info" : "requireAdministrator"}], 54 options = { "py2exe" : { "includes": "gio, pango, atk, pangocairo"} }, 58 options = { "py2exe" : { "includes": "gio, pango, atk, pangocairo", 59 "skip_archive": True} }, 60 zipfile = "library/.", 55 61 data_files = data_files, 56 62 platforms = ["Win32", "Linux"], 57 63 license = "Public Domain" 58 64 ) 65 66 if os.name=="nt": 67 mlx.update.buildManifest(os.path.join(scriptdir, "dist"))
Note:
See TracChangeset
for help on using the changeset viewer.