Dylan
05/10/2022, 7:21 PMpdm
and other tools like poetry and venv behave similarly, in that they don’t expect projects to be installed globally, and are instead expected to be scoped to an environment on the host.pdm install
where prefect is a project dependency, among many.pip install prefect
I expect that the flow run will fail, as the prefect invocation is outside the bounded scope of a project installed with pdm. This is similar to how govendor and bundler work.pdm run prefect execute flow-run
Kevin Kho
05/10/2022, 7:56 PMDylan
05/10/2022, 8:03 PMprefect
to be on the global path of any image but the prefect image, and if I’m installing a project globally (basically at the OS level) I’m breaking modularity and the setup for that has to deviate substantially from installing a project locally for development work.Kevin Kho
05/17/2022, 8:06 PMpdm
in your container is the last of flexibility in the command attached to for prefect execute flow-run
. I think the best way to go about this is to expose some functionality to change that.
I don’t know what the sentiment around that will be. A lot of people request this in a different context: they want to add their own CustomFlowRunner class that is used. I will write up an issue for this later or tomorrow.Dylan
05/17/2022, 8:37 PMKevin Kho
05/20/2022, 3:59 PM