How can I write a requirements file to pip install from multiple submodules?

Viewed 26

I have a master repo with repositories checked out at certain commits. All individual repositories are installable with the command:

pip install -r requirements.txt

from within the master-repository, I want to make it so you can install all the packages at once. The file structure is like:

├── aws_login_handler
│   ├── AWSLoginHandler
│   ├── requirements.txt
│   └── setup.py
├── datamodels
│   ├── BATDataModels
│   ├── requirements.txt
│   └── setup.py
├── gribmanager
│   ├── GribManager
│   ├── requirements.txt
│   └── setup.py
├── mongobase
│   ├── MongoBase
│   ├── requirements.txt
│   ├── setup.py
├── pyrtz
│   ├── PyRTZ
│   ├── requirements.txt
│   └── setup.py
├── routingserver
│   ├── requirements.txt
│   ├── RoutingServer
│   └── setup.py
├── runrouting
│   ├── requirements.txt
│   ├── RunRouting
│   └── setup.py
├── weatherrouting_v3
│   ├── BATWeatherRouting
│   ├── requirements.txt
│   └── setup.py
└── requirements.txt

Where I have added the requirements file:

-r ./datamodels/requirements.txt
-r ./mongobase/requirements.txt
-r ./routingserver/requirements.txt
-r ./runrouting/requirements.txt
-r ./weatherrouting_v3/requirements.txt
-r ./aws_login_handler/requirements.txt
-r ./gribmanager/requirements.txt

However when I run the command:

pip install -r requirements.txt

From the top level strucutre, the error:

ERROR: Directory '.' is not installable. Neither 'setup.py' nor 'pyproject.toml' found.

Is printed.

How can I create a way to install all the requirements of the sub modules?

1 Answers
Related