| 1 | |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | from distutils.core import setup |
|---|
| 20 | import py2exe |
|---|
| 21 | import glob |
|---|
| 22 | |
|---|
| 23 | includes = ["encodings", |
|---|
| 24 | "encodings.utf-8",] |
|---|
| 25 | |
|---|
| 26 | opts = { |
|---|
| 27 | "py2exe": { |
|---|
| 28 | "includes": "pango,atk,gobject,plugins,plugins.gtkgui,plugins.logger,encodings,encodings.*", |
|---|
| 29 | "dll_excludes": [ |
|---|
| 30 | "iconv.dll","intl.dll","libatk-1.0-0.dll", |
|---|
| 31 | "libgdk_pixbuf-2.0-0.dll","libgdk-win32-2.0-0.dll", |
|---|
| 32 | "libglib-2.0-0.dll","libgmodule-2.0-0.dll", |
|---|
| 33 | "libgobject-2.0-0.dll","libgthread-2.0-0.dll", |
|---|
| 34 | "libgtk-win32-2.0-0.dll","libpango-1.0-0.dll", |
|---|
| 35 | "libpangowin32-1.0-0.dll" |
|---|
| 36 | ], |
|---|
| 37 | } |
|---|
| 38 | } |
|---|
| 39 | |
|---|
| 40 | setup( |
|---|
| 41 | name = "Gajim", |
|---|
| 42 | description = "A jabber client", |
|---|
| 43 | |
|---|
| 44 | windows = [{"script": "gajim.py", |
|---|
| 45 | "icon_resources": [(1, "gajim.ico")]}], |
|---|
| 46 | options=opts, |
|---|
| 47 | data_files=[("plugins/gtkgui", glob.glob("plugins/gtkgui/gtkgui.glade")), |
|---|
| 48 | ("plugins/gtkgui/icons/sun", glob.glob("plugins/gtkgui/icons/sun/*.*")), |
|---|
| 49 | ("plugins/gtkgui/emoticons", glob.glob("plugins/gtkgui/emoticons/*.*")), |
|---|
| 50 | ("plugins/gtkgui/pixmaps", glob.glob("plugins/gtkgui/pixmaps/*.*")), |
|---|
| 51 | ("sounds", glob.glob("sounds/*.*")), |
|---|
| 52 | ("Messages/fr/LC_MESSAGES", glob.glob("Messages/fr/LC_MESSAGES/*.mo")) |
|---|
| 53 | ], |
|---|
| 54 | ) |
|---|