source: setup.py@ 170:7cda0cc74e19

Last change on this file since 170:7cda0cc74e19 was 159:5a0078210fff, checked in by István Váradi <ivaradi@…>, 12 years ago

Included the Hungarian messages and the hicolor icon theme

File size: 2.6 KB
Line 
1# -*- coding: iso-8859-2 -*-
2
3import sys
4import os
5from glob import glob
6from distutils.core import setup
7
8scriptdir=os.path.dirname(sys.argv[0])
9sys.path.insert(0, os.path.join(scriptdir, "src"))
10
11import mlx.const
12import mlx.update
13
14data_files = [("sounds", glob(os.path.join("sounds", "*.*")))]
15if os.name=="nt":
16 import py2exe
17
18 data_files.append(("", ["logo.ico"]))
19
20 msvcrDir = os.environ["MSVCRDIR"] if "MSVCRDIR" in os.environ else None
21 if msvcrDir:
22 data_files.append(("Microsoft.VC90.CRT", glob(os.path.join(msvcrDir, "*.*"))))
23
24 gtkRuntimeDir = os.environ["GTKRTDIR"] if "GTKRTDIR" in os.environ else None
25 if gtkRuntimeDir:
26 path = os.path.join("lib", "gtk-2.0", "2.10.0", "engines")
27 data_files.append((os.path.join("library", path),
28 [os.path.join(gtkRuntimeDir, path, "libwimp.dll")]))
29
30 path = os.path.join("share", "themes", "MS-Windows", "gtk-2.0")
31 data_files.append((os.path.join("library", path),
32 glob(os.path.join(gtkRuntimeDir, path, "*"))))
33
34 path = os.path.join("share", "locale", "hu", "LC_MESSAGES")
35 data_files.append((os.path.join("library", path),
36 glob(os.path.join(gtkRuntimeDir, path, "*"))))
37 path = os.path.join("share", "icons", "hicolor")
38 data_files.append((os.path.join("library", path),
39 glob(os.path.join(gtkRuntimeDir, path, "*"))))
40
41 with open("mlx-common.nsh", "wt") as f:
42 print >>f, '!define MLX_VERSION "%s"' % (mlx.const.VERSION)
43 f.close()
44
45long_description="""MAVA Logger X
46
47This is a program to log and evaluate the actions
48of a pilot flying a virtual Malév flight operated
49by MAVA."""
50
51setup(name = "mlx",
52 version = mlx.const.VERSION,
53 description = "MAVA Logger X",
54 long_description = long_description,
55 author = "István Váradi",
56 author_email = "ivaradi@gmail.com",
57 url = "http://mlx.varadiistvan.hu",
58 package_dir = { "" : "src" },
59 packages = ["mlx", "mlx.gui"],
60 requires = ["pyuipc"],
61 windows = [{ "script" : "runmlx.py",
62 "icon_resources" : [(1, "logo.ico")]},
63 { "script" : "mlxupdate.py",
64 "uac_info" : "requireAdministrator"}],
65 options = { "py2exe" : { "includes": "gio, pango, atk, pangocairo",
66 "skip_archive": True} },
67 zipfile = "library/.",
68 data_files = data_files,
69 platforms = ["Win32", "Linux"],
70 license = "Public Domain"
71 )
72
73if os.name=="nt":
74 mlx.update.buildManifest(os.path.join(scriptdir, "dist"))
Note: See TracBrowser for help on using the repository browser.