I have a project with multiple Python modules, each of which has its own virtual environment. I want to add a source dependency from one module to another. Considering the following structure:
- data-reader (Python module)
- data-writer (Python module)
- commons (Python module)
I want to add `commons` as a source package requirement to the other two modules. I have created `setup.py` file in `commons` and added the following line to the `requirements.txt` in the other two modules: `-e commons`.
After activating one of the modules (e.g., data-reader) and installing the requirements from `requirements.txt`, I can import and run scripts from `commons` using the Python interpreter from the terminal, but in Intellij IDEA the import line is underlined with a red line indicating an error and I cannot get all the auto-complete and documentation support.
I am using Intellij IDEA 2018.2 EAP and I have tried this with 2018.1 also.
Could you please let me know how can I properly define this dependency?
Thanks in advance