Background
I have two python projects. Project A and Project B.
Each project has its own virtual environment and its own setup.py.
Both projects are not pure py files and has "build" process like building extensions, generate source etc.
A is dependent on B (setup.py install_requires points on B).
Each project is built and published/distributed as a wheel to pypi on-premise repository.
pip install w/wo -e (development mode) of project A, nicely installs project B into project A venv site-packages.
So far everything is working nicely and "by the book".
Now, my story get complicated ...
I would like to develop the two projects together without having to publish B in order A to consume it.
As example, I would like to:
- Change something in B.
- build B (setup.py build).
- NOT publish B as wheel to pypi.
- Goal - Project A will "know" the modified Project B. WITHOUT manually tweaking sys.path.
I actually want the pip install -e of project A to install project B in development mode too.
After some reading I understood (hopefully correctly) that one can define a "distribution" as a local source folder by --find-links flag.
I defined project B root folder in --find-links.
I tried it with (on project A setup.py folder):
pip install . -e --find-links = file:///path/to/B
pip install . -e --find-links = git+file://path/to/B
Both did not work.
BTW, Puting in the path to B wheel or egg of B,
ex: pip install . -e --find-links = file:///path/to/B.whl
did work but this is not what I am looking for.
Hope you are still with me :-) (sorry for the tedious story)
What am I missing?
Tx