ai2cm / fv3config

Manipulate FV3GFS run directories
Apache License 2.0
1 stars 0 forks source link

Install extra python packages in `fv3run` #51

Closed nbren12 closed 4 years ago

nbren12 commented 4 years ago

While trying to write the prognostic ML model code, I had a difficulty with installing extra python packages into the docker image. While the fv3run functions can take a runfile argument, there is no such argument for adding other python dependencies (e.g. a local module).

Currently, this has made developing with fv3run pretty complicated, since any changes require rebuilding a docker image which contains the desired package. I think @oliverwm1 ran into a similar issue today. I think one solution could be to add an extra_packages argument to the run_docker that could be pointed to a list of python_modules or packages to include in the run. This is pretty similar to how dataflow works.

nbren12 commented 4 years ago

We've decided this is not necessary. It is easy to build a new docker image of fv3run.