Dylan
05/10/2022, 7:21 PMDylan
05/10/2022, 7:22 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.Dylan
05/10/2022, 7:22 PMDylan
05/10/2022, 7:23 PMpdm install
where prefect is a project dependency, among many.Dylan
05/10/2022, 7:24 PMpip 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.Dylan
05/10/2022, 7:25 PMpdm run prefect execute flow-run
Dylan
05/10/2022, 7:25 PMDylan
05/10/2022, 7:30 PMDylan
05/10/2022, 7:43 PMDylan
05/10/2022, 7:43 PMKevin Kho
Dylan
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.Dylan
05/10/2022, 10:39 PMDylan
05/10/2022, 10:41 PMDylan
05/10/2022, 10:41 PMDylan
05/10/2022, 10:43 PMDylan
05/10/2022, 10:43 PMDylan
05/17/2022, 7:54 PMDylan
05/17/2022, 7:54 PMKevin Kho
pdm
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