pybee / toga-demo

A demonstration of the capabilities of the Toga widget toolkit.
BSD 3-Clause "New" or "Revised" License
16 stars 9 forks source link

tar.gz source of version 0.1.0 on Pypi doesn't include icons #1

Closed cyrildoussin closed 10 years ago

cyrildoussin commented 10 years ago

Installed toga-demo on Ubuntu 12.04.1 in a brand new virtualenv; pip used the source tar.gz package. Upon launching "toga-demo" from the CLI it crashes due to missing icons. After checking it looks like the icons are indeed missing from the source package on Pypi. This did not happen on OSX 10.8 where the wheel package gets used by pip and everything installs and runs fine.

(toga)cdoussin@lsdev:~$ toga-demo
Traceback (most recent call last):
  File "/home/cdoussin/Code/envs/toga/local/lib/python2.7/site-packages/toga/platform/gtk/app.py", line 27, in _startup
    self.main_window.app = self
  File "/home/cdoussin/Code/envs/toga/local/lib/python2.7/site-packages/toga/platform/gtk/window.py", line 61, in app
    self._startup()
  File "/home/cdoussin/Code/envs/toga/local/lib/python2.7/site-packages/toga/platform/gtk/window.py", line 36, in _startup
    item_impl.set_icon_widget(toolbar_item.icon._impl_32)
  File "/home/cdoussin/Code/envs/toga/local/lib/python2.7/site-packages/toga/platform/gtk/widgets/icon.py", line 33, in <lambda>
    _impl_32 = property(lambda self: self.__impl(32))
  File "/home/cdoussin/Code/envs/toga/local/lib/python2.7/site-packages/toga/platform/gtk/widgets/icon.py", line 28, in __impl
    GdkPixbuf.Pixbuf.new_from_file(self._filename).scale_simple(size, size, GdkPixbuf.InterpType.BILINEAR)
  File "/home/cdoussin/Code/envs/toga/local/lib/python2.7/site-packages/gi/types.py", line 72, in constructor
    return info.invoke(cls, *args, **kwargs)
gi._glib.GError: Failed to open file '/home/cdoussin/Code/envs/toga/local/lib/python2.7/site-packages/toga_demo/icons/brutus-32.png': No such file or directory
(toga)cdoussin@lsdev:~$ 
freakboy3742 commented 10 years ago

Thanks for the report - looks like I missed the definition in MANIFEST.in.