Even if I install one of the packages as editable and the other as a regular dependency, the editable package cannot be imported. So this may not have anything to do with the project's structure but something cold be wrong with my venv. I rewrote the question.