Article 50585 How to Install dependency module locally?

How to Install dependency module locally?

by
shogun1234
from LinuxQuestions.org on (#50585)
I am very new to python (though I have some programming experience), so I am not sure if I understand it correctly or not.

I have two projects A, and B where A depends on B (both contains setup.py files). Usually I will do following operations

Code:vritualenv -p python3 .env
source .env/bin/activate
pip3 install <moudule name 1>
pip3 install <moudule name 2>
...Now I want to modify the dependency B in order to test some functions in the project A. After searching on the internet, it seems that I can simply execute

Code:python3 install -e .to install the project. But how can I install module/ project B in the project A? I am confused with this because if I execute in the project A dir, then it simply installs project A by python3 install -e .. Is there any way to achieve my goal?

Thanks for any suggestions.latest?d=yIl2AUoC8zA latest?i=ARkDSXkdw1o:_5czUAu3kPA:F7zBnMy latest?i=ARkDSXkdw1o:_5czUAu3kPA:V_sGLiP latest?d=qj6IDK7rITs latest?i=ARkDSXkdw1o:_5czUAu3kPA:gIN9vFwARkDSXkdw1o
External Content
Source RSS or Atom Feed
Feed Location https://feeds.feedburner.com/linuxquestions/latest
Feed Title LinuxQuestions.org
Feed Link https://www.linuxquestions.org/questions/
Reply 0 comments