Changeset 27:d95d48685969 for setup.py


Ignore:
Timestamp:
02/25/12 10:14:12 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Created icons, reorganized sources and made the Windows installer work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r20 r27  
    88sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), "src"))
    99
    10 import const
     10import mlx.const
    1111
    1212data_files = []
    1313if os.name=="nt":
    1414    import py2exe
     15
     16    data_files.append(("", ["src/mlx/logo.ico"]))
    1517
    1618    msvcrDir = os.environ["MSVCRDIR"] if "MSVCRDIR" in os.environ else None
     
    2729       
    2830    with open("mlx-common.nsh", "wt") as f:
    29             print >>f, '!define MLX_VERSION "%s"' % (const.VERSION)
     31            print >>f, '!define MLX_VERSION "%s"' % (mlx.const.VERSION)
    3032            f.close()
    3133
     
    3739
    3840setup(name = "mlx",
    39       version = const.VERSION,
     41      version = mlx.const.VERSION,
    4042      description = "MAVA Logger X",
    4143      long_description = long_description,
     
    4446      url = "http://mlx.varadiistvan.hu",
    4547      package_dir = { "" : "src" },
    46       packages = [""],
     48      packages = ["mlx"],
     49      package_data = { "mlx" : ["logo.ico", "logo_uninst.ico"] },
    4750      requires = ["pyuipc"],
    48       windows = [{ "script" : "src/runmlx.py" }],
     51      windows = [{ "script" : "runmlx.py",
     52                   "icon_resources" : [(1, "src/mlx/logo.ico")]}],
    4953      options = { "py2exe" : { "includes": "gio, pango, atk, pangocairo"} },
    5054      data_files = data_files,
Note: See TracChangeset for help on using the changeset viewer.