Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Best distribution method
#1
Information 
Hi all,
I have a general question about what the best way to distribute my projects. Essentially, I have a core application that runs in pretty much pure C++, and Im working on the data science side extending functionality by creating features (either web based using Flask, or by creating GUI applications) in Python. My question is whats the best practice to distribute these as part of our software?

Normally, I would just have one environment/venv containing all the libraries needed for each Python feature. However, since each feature requires different versions of python due to library incompatibilities, and other issues, I have created a venv for each feature and am distributing the Venv as well as a script to use the feature. My question is essentially is my current approach the best method, or should I think to bundle each feature into its own application/executable so that I dont have to worry about accessing the correct venv when wanting to use a specific feature? I know both approaches work, but I am not sure what best practice is or what is the best approach in terms of memory footprint. You can see a diagram below describing my current structure/workflow.


------Main CPP Application
|-----Python Feature 1 with venv 1 (contains python 3.10 for example)
|-----Python Feature 2 with venv 2 (contains python 3.9 for example)

The CPP application will directly called the python executable located in the virtual environment for each feature as well as the feature script itself.


Thanks a ton!!!!
Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  distribution fit Glaucio 1 237 Apr-07-2024, 12:30 AM
Last Post: Larz60+
  Weight Distribution 11drk9 11 696 Mar-13-2024, 06:08 AM
Last Post: Pedroski55
  How do I use a whl puython distribution? barryjo 6 1,799 Aug-15-2022, 03:00 AM
Last Post: barryjo
  Coin Toss - Distribution lasek723 6 3,124 Oct-04-2020, 01:36 PM
Last Post: deanhystad

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020