|
|
#1 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?
|
|
|
|
|
|
#2 |
|
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,631
Karma: 28549046
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)
|
|
|
|
| Advert | |
|
|
|
|
#3 |
|
Junior Member
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() 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?).
|
|
|
|
![]() |
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Plugin] PunctuationSmarten Sigil plugin | DiapDealer | Plugins | 154 | 10-02-2025 07:05 PM |
| [FileType Plugin] YVES Bible Plugin | ClashTheBunny | Plugins | 27 | 01-16-2023 02:25 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 |