One repository, multiple projects, separate interpreter for each project

I'm using Pycharm and got a monolith git repository which contains multiple projects. 

Projects could be separated in root dir like:

A/
  requirement.txt
B/
  requirement.txt
C/
  requirement.txt

but also each project could have subprojects like
A/
  requirement.txt
   a1/
     requirement.txt
   a2/ 
     requirement.txt

The problem is that each project could have own requirement.txt file and even own python version and own virtualenv, therefore I need to configure multiple interpreters, at the same time it's still a monolith repo and I should be able to push all the changes to git. Some projects could have dependencies on each other.

 

Does anyone have an idea how to do it Pycharm?

Just to create a separate project in pycharm or there is some other, smarter way?

4
2 comments
Avatar
Permanently deleted user

Same here, I have a monorepo with two different Python projects with very different requirements.txt (also, different containers).

Having different interpreters would be really useful.

0

You can create multiple projects and then attach them all to a single window for comfortable environment: https://www.jetbrains.com/help/pycharm/opening-multiple-projects.html#Opening_Multiple_Projects.xml

2

Please sign in to leave a comment.