View Single Post
Old 06-14-2014, 11:12 AM   #1
JimmXinu
Plugin Developer
JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.JimmXinu ought to be getting tired of karma fortunes by now.
 
JimmXinu's Avatar
 
Posts: 6,998
Karma: 4604635
Join Date: Dec 2011
Location: Midwest USA
Device: Kobo Clara Colour running KOReader
Python Libraries included in Plugin?

Hi,

cryzed has started helping me with the FFDL plugin and would really like to use current versions of BeautifulSoup4 and html5lib.

What is the appropriate way to include libraries in a plugin?

While including the packages in the plugin zip and manipulating sys.path directly to include the dir inside the plugin zip appears to work, it seems to me that is likely to conflict with calibre and/or other plugins at some point.

I know calibre already has versions of html5lib and BeautifulSoup, but neither is current. FFDL has always included its own BeautifulSoup, but it wasn't a packaged library then.

Any help you can offer would be appreciated.

Thanks.
JimmXinu is offline   Reply With Quote