You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In many of the repos I work with, I keep having to litter the Makefile with random pip install X commands. I wonder if there would be an easier way to do this, for example having a requirements.txt at the top level of the ODK repo.
This could also help dealing with issues like #1028 (comment), where a GitHub action expects that file to install dependencies during the run of the action.
Not entirely convinced we should do this, but saying it out loud for the record.
The text was updated successfully, but these errors were encountered:
I have said before that in my opinion, the best and most efficient solution for people who need additional software (Python packages or whatever) that is not in the ODK and that would not be suitable for addition to the upstream ODK, is to make their own custom ODK image with whatever they need. I have not changed my mind.
That being said, if we do want to provide a somewhat easy way to install additional Python packages in an ODK instance:
We should avoid doing that by means of a top-level requirements.txt file. I don’t remember the details, but I’ve been bitten before by having a file named requirements.txt in a repository, because there are tools out there that automatically assume that such a file is intended for them and start trying to use it to install Python packages. We should pick another name, one that is not already widely used, and I believe it should not even be directly under the repository’s root – rather somewhere under src/ontology/config or something like that.
matentzn
added
the
minor
Label for PRs which should be considered for future minor patches
label
Apr 4, 2024
In many of the repos I work with, I keep having to litter the
Makefile
with randompip install X
commands. I wonder if there would be an easier way to do this, for example having a requirements.txt at the top level of the ODK repo.This could also help dealing with issues like #1028 (comment), where a GitHub action expects that file to install dependencies during the run of the action.
Not entirely convinced we should do this, but saying it out loud for the record.
The text was updated successfully, but these errors were encountered: