Braun Reyes
11/23/2022, 9:01 PMredsquare
11/23/2022, 9:30 PMFred Birchall
11/24/2022, 12:32 PMfunctions
library that we have stored in git and use kubernetes/git-sync to sync the library into the pods and then have a symbolic link to mirror this directory into /usr/local/lib/python3.9/site-packages/functions
. Then in your scripts you can just do from functions import my_helper
etcredsquare
11/24/2022, 2:39 PMFred Birchall
11/24/2022, 4:11 PMsetup.py
file and pip install -e .
but when the git sync happened, it broke the python installation (don’t know the details of how the -e
flag works but the sync broke it every time…). But I have in a couple of instances, I’ve manually wrote code within site-packages
to be shared across multiple processes. It’s probably not the most production ready solution, but it does work! 😂 Hope this helps wit your issue! Also keen to see if there are better solutions in the Prefect worldredsquare
11/24/2022, 10:56 PM