Automatic detection of python dependencies #690
Hello everyone 👋First of all: wow. You, Tecnativa, and all contributors are amazing with what you've built here! 🎉 I'm new to Odoo and came across your repo – it's absolutely fantastic and I feel very comfortable working with it. My QuestionPerhaps I've missed this in the FAQ or documentation, but it's about automatically detecting Python modules from Odoo addons. Are the required Python modules automatically detected and I don't need to do anything, or do they need to be manually added to ExampleFor example, the OCA repository freezegun
numpy-financial<=1.0.0
numpy>=1.15
python-dateutilWhat I've FoundI've already seen something similar in this repo that automatically generates a Questions
Do you have any tips for me? Thanks in advance! 🙏 |
Replies: 1 comment 3 replies
|
As it's designed, Doodba requires to explicitly put the Python dependencies into pip.txt. This is because you may not want to use all the modules of the repository, and the file requirements.txt contains more dependencies than needed. It's also because most modules don't require extra Python libraries, so it's something unfrequent. Anyway, you can link the requirements.txt files of each repo in pip.txt for not having to copy/paste them if you prefer that way. |
As it's designed, Doodba requires to explicitly put the Python dependencies into pip.txt. This is because you may not want to use all the modules of the repository, and the file requirements.txt contains more dependencies than needed. It's also because most modules don't require extra Python libraries, so it's something unfrequent. Anyway, you can link the requirements.txt files of each repo in pip.txt for not having to copy/paste them if you prefer that way.