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.


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.