Changeset 37:a9637d8e2ea0 for setup.py


Ignore:
Timestamp:
03/04/12 08:58:27 (12 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
default
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

The MLXMANIFEST is generated when creating the distribution and files to be removed are really removed.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r36 r37  
    66from distutils.core import setup
    77
    8 sys.path.insert(0, os.path.join(os.path.dirname(sys.argv[0]), "src"))
     8scriptdir=os.path.dirname(sys.argv[0])
     9sys.path.insert(0, os.path.join(scriptdir, "src"))
    910
    1011import mlx.const
     12import mlx.update
    1113
    1214data_files = []
     
    2325    if gtkRuntimeDir:
    2426        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")]))
    2629
    2730        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, "*"))))
    2933       
    3034    with open("mlx-common.nsh", "wt") as f:
     
    5256                 { "script" : "mlxupdate.py",
    5357                   "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/.",
    5561      data_files = data_files,
    5662      platforms = ["Win32", "Linux"],
    5763      license = "Public Domain"
    5864      )
     65
     66if os.name=="nt":
     67    mlx.update.buildManifest(os.path.join(scriptdir, "dist"))
Note: See TracChangeset for help on using the changeset viewer.