Preferred way to include a py library in your plugin ?

Posted on
Sun Sep 26, 2021 8:40 am
ryanbuckner offline
Posts: 1074
Joined: Oct 08, 2011
Location: Northern Virginia

Preferred way to include a py library in your plugin ?

I have a plugin that requires geopy to be installed on the server. What's the best practice for plugins that require another library?

1) Include the .py file in the plugin package ?
2) Require the user to install the .py and include instructions ?
3) Is there another way?

Posted on
Sun Sep 26, 2021 2:05 pm
FlyingDiver offline
User avatar
Posts: 7189
Joined: Jun 07, 2014
Location: Southwest Florida, USA

Re: Preferred way to include a py library in your plugin ?

I used to do #2, but now I mostly do #1.

joe (aka FlyingDiver)
my plugins: http://forums.indigodomo.com/viewforum.php?f=177

Posted on
Sun Sep 26, 2021 2:19 pm
berkinet offline
User avatar
Posts: 3290
Joined: Nov 18, 2008
Location: Berkeley, CA, USA & Mougins, France

Re: Preferred way to include a py library in your plugin ?

#1

Posted on
Sun Sep 26, 2021 4:38 pm
ryanbuckner offline
Posts: 1074
Joined: Oct 08, 2011
Location: Northern Virginia

Re: Preferred way to include a py library in your plugin ?

Thank you both. I have packaged the libraries with the plugin

Posted on
Mon Sep 27, 2021 9:24 am
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Preferred way to include a py library in your plugin ?

Thank you both. I have packaged the libraries with the plugin

I personally think that is best when you are able to include the Python source. There are times that it requires other dependencies that make it troublesome, but when possible I like including the source. That ensures the proper version is available and reduces user involvement.

Adam

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 1 guest