source: setup.py@ 27:d95d48685969

Last change on this file since 27:d95d48685969 was 27:d95d48685969, checked in by István Váradi <ivaradi@…>, 12 years ago

Created icons, reorganized sources and made the Windows installer work

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