Hi,
Do some people here uses Py2exe to package a pygtk application that uses
gtk.IconTheme?
Recently I switch to gtk.IconTheme in my application, and since this
moment, py2exe doesn't work anymore. I did a very very short test
application that shows the problem (attached files)
If some of you have ideas on how to fix that, that would be nice!
--
Yann
from distutils.core import setup
import py2exe
import glob
py26MSdll = glob.glob(r"Py26MSDlls\*.*")
python26_files = [("Microsoft.VC90.CRT", py26MSdll),
("lib\Microsoft.VC90.CRT", py26MSdll),
]
opts = {
'py2exe': {
# ConfigParser,UserString,roman are needed for docutils
'includes': ('pango,atk,gobject,cairo,pangocairo,gtk.keysyms,'
'encodings,encodings.*,ConfigParser,UserString'),
'dll_excludes': [
'iconv.dll', 'intl.dll', 'libatk-1.0-0.dll',
'libgdk_pixbuf-2.0-0.dll', 'libgdk-win32-2.0-0.dll',
'libglib-2.0-0.dll', 'libgmodule-2.0-0.dll',
'libgobject-2.0-0.dll', 'libgthread-2.0-0.dll',
'libgtk-win32-2.0-0.dll', 'libpango-1.0-0.dll',
'libpangowin32-1.0-0.dll', 'libcairo-2.dll',
'libpangocairo-1.0-0.dll', 'libpangoft2-1.0-0.dll',
],
'excludes': [
'docutils'
],
'optimize': 1,
}
}
setup(
name='Test',
version='0.1',
description='Test program',
author='THE Team',
url='URL',
download_url='URL2',
license='GPL',
windows=[{'script': 'test_icontheme.py',
'icon_resources': [(1, 'test.ico')]}],
options=opts,
data_files=python26_files,
)
import gtk
gtk_icon_theme = gtk.icon_theme_get_default()
gtk_icon_theme.append_search_path('.')
print 'ok'
_______________________________________________
pygtk mailing list pygtk@daa.com.au
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/