vially / googlemusic-xbmc

Google Music addon for Kodi
GNU General Public License v3.0
176 stars 48 forks source link

Why vendor in gmusicapi? #44

Closed denibertovic closed 9 years ago

denibertovic commented 10 years ago

Can't we use use the release that's on pypi? Or git submodules perhaps?

foreverguest commented 10 years ago

I chose to include a simplified version of the gmusicapi because the complete version does much more than is needed and requires a lot more dependencies. These dependencies can make the addon slower. On my primary platform, a raspberry pi, it made a big difference.

denibertovic commented 10 years ago

How can dependencies make the addon slower if this functionality isn't used (ie. if you only use a subset of the gmusicapi?)

denibertovic commented 10 years ago

My primary platform is a rpi as well btw.

foreverguest commented 10 years ago

When you do a 'import' usually the called modules do some initializations/verifications even if you don't use it.

denibertovic commented 10 years ago

I'm am aware of this...But imports having side effects is a very bad practice.... What I'm saying is that the proper way would be to fix these things in the upstream library instead of vendoring in a small subset.

razzeee commented 9 years ago

it should probably also be a module. like these:

https://github.com/beenje/script.module.requests https://github.com/Eldorados/script.module.urlresolver https://github.com/Razzeee/script.module.trakt

foreverguest commented 9 years ago

gmusicapi removed.