watchfiles
watchfiles copied to clipboard
Watchfiles with editable packages
I have a docker-compose.yaml application using watchfiles to reload project files.
However, changes made to packages referenced locally and installed via pip install -e .
aren't reflected. Changes only appear after rebuilding the whole clusters docker-compose up -d build
." which is time-consuming.
My question is; how should I handle reloading packages installed via editable mode such that I don't need to rebuild every time?
I can confirm that adding sys.exit(0) inside the editable module launches a reload, but without the newly added line.