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 Yesterday, 09: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 Yesterday, 12: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: 29,069
Karma: 7373157
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 offline   Reply With Quote
Old Today, 12: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 57 05-16-2016 05:48 PM
[FileType Plugin] YVES Bible Plugin ClashTheBunny Plugins 15 09-23-2014 10:45 AM
Plugin not customizable: Plugin: HTML Output does not need customization flyingfoxlee Conversion 2 02-24-2012 02:24 AM
[GUI Plugin] Plugin Updater **Deprecated** kiwidude Plugins 159 06-19-2011 12:27 PM
New Plugin Type Idea: Library Plugin cgranade Plugins 3 09-15-2010 12:11 PM


All times are GMT -4. The time now is 11:43 AM.


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