Changeset 981:3fa8c08f4b8f for setup.py


Ignore:
Timestamp:
06/23/19 08:55:15 (5 years ago)
Author:
István Váradi <ivaradi@…>
Branch:
python3
hg-Phase:
(<MercurialRepository 1 'hg:/home/ivaradi/mlx/hg' '/'>, 'public')
Message:

Reduced the size of the package a bit (re #347)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • setup.py

    r967 r981  
    7373
    7474            for components in [ ["lib", "girepository-1.0"],
    75                                 ["lib", "gdk-pixbuf-2.0", "2.10.0"],
    76                                 ["share", "icons"],
     75                                ["lib", "gdk-pixbuf-2.0", "2.10.0", "loaders.cache"],
     76                                ["lib", "gdk-pixbuf-2.0", "2.10.0", "loaders", "libpixbufloader-ico.dll"],
     77                                ["lib", "gdk-pixbuf-2.0", "2.10.0", "loaders", "libpixbufloader-png.dll"],
     78                                ["lib", "gdk-pixbuf-2.0", "2.10.0", "loaders", "libpixbufloader-svg.dll"],
     79                                ["share", "icons", "Adwaita", "icon-theme.cache"],
     80                                ["share", "icons", "Adwaita", "index.theme"],
     81                                ["share", "icons", "Adwaita", "16x16"],
    7782                                ["share", "locale", "hu"],
    7883                                ["share", "locale", "en"],
    7984                                ["share", "themes"],
    8085                                ["share", "glib-2.0", "schemas"]]:
    81                 path = os.path.join(*components)
    82                 p = Path(os.path.join(gtkRuntimeDir, path))
    83                 for f in p.glob("**/*"):
    84                     if f.is_file():
    85                         d = os.path.join(path, str(f.parent.relative_to(p)))
    86                         if d in files:
    87                             files[d].append(str(f))
    88                         else:
    89                             files[d] = [str(f)]
     86                 path = os.path.join(*components)
     87                 p = Path(os.path.join(gtkRuntimeDir, path))
     88                 if p.is_file():
     89                     d = os.path.dirname(path)
     90                     if d in files:
     91                         files[d].append(str(p))
     92                     else:
     93                         files[d] = [str(p)]
     94                 else:
     95                     for f in p.glob("**/*"):
     96                         if f.is_file():
     97                             d = os.path.join(path, str(f.parent.relative_to(p)))
     98                             if d in files:
     99                                 files[d].append(str(f))
     100                             else:
     101                                 files[d] = [str(f)]
    90102
    91103            for path in files:
     
    119131
    120132        data_files.append(("locales",
    121                            glob(os.path.join(cefDir, "locales", "*"))))
     133                           [os.path.join(cefDir, "locales", "hu.pak"),
     134                            os.path.join(cefDir, "locales", "en-GB.pak"),
     135                            os.path.join(cefDir, "locales", "en-US.pak"),
     136                            os.path.join(cefDir, "locales", "ru.pak")]))
    122137
    123138    if os.getenv("WINE")=="yes":
Note: See TracChangeset for help on using the changeset viewer.