-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Reload not working when app package is symlinked from site-packages #60
Comments
That's the same method that What operating system are you using? |
It’s different. Setuptools installs a pth file in site-packages, not a symlink.
I don’t have an answer how to handle this right now without reverting hupper to monitor all of site packages. I could search it for symlinks but this feeling like a never ending battle.
|
Ha, I was under the impression that hupper was already monitoring site-packages! Is there an acceptable workaround, like a setting to specify extra files to monitor, or a trick like (the django devserver reloader sometimes misses changes to views, so I’m used to needing |
|
That will work! I’m still not sure if this line in the readme is accurate:
I will test with changes to existing file (already loaded module) vs. adding a new submodule in the symlinked package. |
Yeah it was an optimization hupper made in 1.4 https://github.com/Pylons/hupper/blob/master/CHANGES.rst#14-2018-10-26 to skip site-packages. The reason was because it was adding unnecessary overhead for most projects - #34. It might be possible to just special case symlinked stuff and not count it as a system path. The filtering is happening here: Lines 68 to 81 in 9510a8e
|
As I think about it more, maybe the best option would be to resolve paths to their |
Easy enough: |
flit is a new package build tool that’s I find nicer than distutils/setuptools for simple projects (issues with missing package data are gone!). The develop install equivalent is symlink install that creates and installs
dist-info
dir + a symlink from site-packages to project dir so that imports work. With that setup, editing a file does not cause hupper (used via pserve) to reload the app.The text was updated successfully, but these errors were encountered: