Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Software > Calibre > Plugins

Notices

Reply
 
Thread Tools Search this Thread
Old 07-29-2016, 10:40 AM   #1
miheerdew
Junior Member
miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.
 
Posts: 5
Karma: 6000
Join Date: Aug 2013
Device: Kindle Paperwhite
Plugin with depedencies

I would like to use 3rd party library (available on pypi) inside a plugin. This library itself needs another library on pip. How can I use it in my plugin?
miheerdew is offline   Reply With Quote
Old 07-29-2016, 01:02 PM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
Posts: 33,753
Karma: 10215946
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Add it to the plugin zip file (you will need to adjust the import statements inside the copy you place in the zip file, if it is a multi-file library)
kovidgoyal is online now   Reply With Quote
Advert
Old 07-30-2016, 01:39 AM   #3
miheerdew
Junior Member
miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.miheerdew got an A in P-Chem.
 
Posts: 5
Karma: 6000
Join Date: Aug 2013
Device: Kindle Paperwhite
Thanks. But, doing this for each dependency recursively will be tedious and error prone. Is there a better alternative (for instance using virtualenv?).
miheerdew is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
[Plugin] PunctuationSmarten Sigil plugin DiapDealer Plugins 74 11-26-2018 03:50 PM
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 24 07-21-2018 11:11 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 03:24 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 01:27 PM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 01:11 PM


All times are GMT -4. The time now is 03:26 AM.


MobileRead.com is a privately owned, operated and funded community.