-
Notifications
You must be signed in to change notification settings - Fork 14
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
Fix settings lineage #110
Fix settings lineage #110
Conversation
Hold on a second, why it breaks our build now? |
Is this really best practice for coding paths during setup? I'd guess not. If we want to throw this part of the setup out and replace it by something somewhat maintainable, I am all in favor of it. |
@maweki I fully agree that this way of doing things might not be obvious. But python packaging is rather strange thing by itself, and we need to have at least something for right now. This doesn't fix #107 of course but this will do the installation a tiny bit less ugly. Maybe we can kindly ask @takluyver to tell us about best practices 😏 |
I think this looks OK as a small fix for a small issue. I'm not aware of any best practice for this kind of thing. Python packaging is mostly designed around delivering libraries rather than applications, and the general pattern is that anything your code wants to access at runtime is delivered inside the package folder, and accessed using a relative path, e.g. with importlib.resources. Python packaging has moved away from running |
Doomed and unmaintainable. Is there a way we can do it with relative paths? What would we need to do to fix this? |
BTW I tried to install |
Thank you Thomas! |
This fixes adding a lot of extra newlines during simple changes in
settings.py
during the installation process (spotted by @maweki).The problem was that by default print function obviously adds an extra
\n
in the end.I also changed the
inplace
parameter from1
toTrue
for sake of readability.