Yes that is what -r means, read the contents of the requirements file, I accidentally added it to the command, but it shouldn’t be used there.
Mostly the requirements file is used to backup / store which installed packages are installed in the environment and what their version is. So when you want to start over you can use that file to kind of replicate the new environment. It’s also used by developers to setup their development environment so they have an almost exact copy. You can create such a file with pip freeze --local > requirements.txt to get the packages and their versions installed. Then take a look at the requirements.txt.
That will not work, because the modules.txt contains the module name in Tryton itself and not in the PyPi registry. For example: You want to do invoicing in Tryton
- In Tryton the module is called
account_invouice - In the PyPi registry the module is called
trytond_account-invouice
A very simple script to install all the modules
#!/bin/bash
modules="https://downloads-cdn.tryton.org/7.0/modules.txt"
for i in $(curl -sS $modules); do
pip install --upgrade trytond-$i==7.0.*
done
This script will install all the modules. It will take some time because pip is trying to install every module and it’s dependencies. But modules depend on each other so some are already installed and tried again.