Dominic Tarro
12/01/2023, 8:13 PMsrc/
folder with the various components in there like src/flows/
and src/mylib/
. When deploying I run into import issues (e.g. flows/flow_a.py
trying to import mylib
). I can solve this locally by altering PYTHONPATH, but I want it to also work in the execution environment. Would adding an infra_override
to each deployment like below work? Are there better ways of going about this?
infra_overrides: {
"env.PYTHONPATH": "src/"
}
Nate
12/01/2023, 8:48 PMpyproject.toml
and package up my project so i can pip install .
or pip install ".[whatever]"
like this, and then just import like a package (bc it is one) or is there some nuance I'm missing where you really need to mess with PYTHONPATH
?Dominic Tarro
12/01/2023, 9:05 PMNate
12/01/2023, 9:07 PMpip install .
your lib in your pull step with run_shell_script
or use EXTRA_PIP_PACKAGES
Dominic Tarro
12/01/2023, 9:08 PMNate
12/01/2023, 9:08 PM