gatt-python icon indicating copy to clipboard operation
gatt-python copied to clipboard

GObject - why dragging in such a huge dependency only for its mainloop?

Open mirko opened this issue 6 years ago • 3 comments

Hello!

I wonder about why GObject is a dependency and apparently the only place where GObject is actually used, is gatt/gatt_linux.py:89: self._main_loop = GObject.MainLoop(). As PyGObject also requires GObject-introspection that's a huge I dependency and I wonder what's so special about its mainloop.

If I'm allowed to wish, I'd love to see this dependency gone, however - as I said - there might be good reasons I don't yet understand. Either way, I'd appreciate to understand what's so special about GObject's mainloop.

mirko avatar Mar 19 '18 16:03 mirko

Hello @mirko,

Do you have some updated information on this matter perhaps?

Snevzor avatar Mar 21 '19 08:03 Snevzor

nope

mirko avatar Mar 24 '19 19:03 mirko

It works fine with self._main_loop = dbus.mainloop.glib.DBusGMainLoop and without GObject as dependency.

ghost avatar May 22 '19 13:05 ghost