| 1 | ## setup_win32.py |
|---|
| 2 | ## |
|---|
| 3 | ## Gajim Team: |
|---|
| 4 | ## - Yann Le Boulanger <asterix@lagaule.org> |
|---|
| 5 | ## - Vincent Hanquez <tab@snarc.org> |
|---|
| 6 | ## |
|---|
| 7 | ## Copyright (C) 2003-2005 Gajim Team |
|---|
| 8 | ## |
|---|
| 9 | ## This program is free software; you can redistribute it and/or modify |
|---|
| 10 | ## it under the terms of the GNU General Public License as published |
|---|
| 11 | ## by the Free Software Foundation; version 2 only. |
|---|
| 12 | ## |
|---|
| 13 | ## This program is distributed in the hope that it will be useful, |
|---|
| 14 | ## but WITHOUT ANY WARRANTY; without even the implied warranty of |
|---|
| 15 | ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|---|
| 16 | ## GNU General Public License for more details. |
|---|
| 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 | # console=["gajim.py"], |
|---|
| 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 | ("Messages/fr/LC_MESSAGES", glob.glob("Messages/fr/LC_MESSAGES/*.mo")) |
|---|
| 52 | ], |
|---|
| 53 | ) |
|---|