Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r497 r720  
    1919                       [os.path.join("locale", language, "LC_MESSAGES",
    2020                                     "mlx.mo")]))
    21 data_files.append(("", ["logo.png",
    22                         "conn_grey.png", "conn_red.png", "conn_green.png"]))
     21data_files.append(("", ["logo.png", "simbrief.html",
     22                        "conn_grey.png", "conn_red.png", "conn_green.png",
     23                        "mlx_cef_caller.sh", "mlx_cef_caller_secondary.sh",
     24                        "mlx_cef_caller.bat", "mlx_cef_caller_secondary.bat"]))
     25
    2326if os.name=="nt":
    2427    import py2exe
     
    2629    data_files.append(("", ["logo.ico"]))
    2730
     31    chromedriver = os.environ.get("CHROMEDRIVER")
     32    if chromedriver:
     33        data_files.append(("", [chromedriver]))
     34
    2835    msvcrDir = os.environ["MSVCRDIR"] if "MSVCRDIR" in os.environ else None
    2936    if msvcrDir:
    30         data_files.append(("Microsoft.VC90.CRT",  glob(os.path.join(msvcrDir, "*.*"))))
     37        data_files.append(("Microsoft.VC90.CRT", glob(os.path.join(msvcrDir, "*.*"))))
     38        os.environ["PATH"] = os.environ["PATH"] + ";" + glob(os.path.join(msvcrDir))[0]
    3139
    3240    gtkRuntimeDir = os.environ["GTKRTDIR"] if "GTKRTDIR" in os.environ else None
     
    4755                           glob(os.path.join(gtkRuntimeDir, path, "*"))))
    4856
     57    cefDir = os.environ.get("CEFDIR")
     58    if cefDir:
     59        for fileName in ["icudt.dll", "subprocess.exe"]:
     60            data_files.append(("", [os.path.join(cefDir, fileName)]))
     61
     62        data_files.append(("locales",
     63                           glob(os.path.join(cefDir, "locales", "*"))))
     64
     65    print data_files
     66
    4967    with open("mlx-common.nsh", "wt") as f:
    5068            print >>f, '!define MLX_VERSION "%s"' % (mlx.const.VERSION)
    5169            f.close()
     70else:
     71    for (dirpath, dirnames, filenames) in os.walk("patches"):
     72        if filenames:
     73            filenames = [os.path.join(dirpath, filename)
     74                         for filename in filenames]
     75            data_files.append((dirpath, filenames))
     76
     77
    5278
    5379long_description="""MAVA Logger X
     
    7197                 { "script" : "mlxupdate.py",
    7298                   "uac_info" : "requireAdministrator"}],
    73       options = { "py2exe" : { "includes": "gio, pango, atk, pangocairo",
     99      options = { "py2exe" : { "includes": "gio, pango, atk, pangocairo, lxml._elementpath",
    74100                               "skip_archive": True} },
    75101      zipfile = "library/.",
     
    80106
    81107if os.name=="nt":
     108    os.rename(os.path.join(scriptdir, "dist", "library", "libcef.dll"),
     109              os.path.join(scriptdir, "dist", "libcef.dll"))
    82110    mlx.update.buildManifest(os.path.join(scriptdir, "dist"))
    83111    with open(os.path.join(scriptdir, "dist", "Uninstall.conf"), "wt") as f:
Note: See TracChangeset for help on using the changeset viewer.