5 ms·
That would you require to make re-installations if your local app you develop against after every code change. Very few people will want to do that and it’s pot
by the_mitsuhiko 2y ago
That would you require to make re-installations if your local app you develop against after every code change. Very few people will want to do that and it’s potentially very slow.
It’s also a step not needed by most other ecosystems.
- pdonis 2y ago> it’s potentially very slow. Potentially, perhaps. But it's certainly not for the cases where I use it: a pure python package, whose dependencies are already installed and are not changing (only the package itself is). Under those conditions, the command line I gave takes a couple of seconds to run.
- paulddraper 2y agoI.e. orders of magnitude longer
- pdonis 2y agoOrders of magnitude longer than what?
- the_mitsuhiko 2y agoThan editable installs. The main sentry app takes ~10 seconds to pip install. I would not want to run that every code change. Also more painful to debug because the filenames in the stack trace no longer match to what you have open in your editor.
- pdonis 2y ago> The main sentry app takes ~10 seconds to pip install. Which is much longer than the "couple of seconds" I gave for my use case. Yes, if it takes that long, I can see how you would want some alternative. > Also more painful to debug because the filenames in the stack trace no longer match to what you have open in your editor.\ Why not? If you do a fresh install, everything should match up. It seems like this problem would be more likely with an editable install, if things aren't kept in sync properly.
- the_mitsuhiko 2y ago> Why not? If you do a fresh install, everything should match up. Absolutely not. The file names in stack traces will be from the site-packages folder in the venv instead of the local checkout.
- orf 2y agoThat iteration loop is pure madness.
- pdonis 2y agoWhy? It works for me.
- pdonis 2y ago> It’s also a step not needed by most other ecosystems. From what I can gather, most other ecosystems don't even have the problem under discussion.
- raoulj 2y agoYeah. It's too slow. Editable installs make application development much faster.
- bheadmaster 2y agoGo (a.k.a. Golang), with its network-first import system (i.e. import "example.org/foo/bar"), has solved the problem in a surprisingly simple way. You just add a "replace" directive in a go.mod file and you can point your import (and all child imports) to any directory on the filesystem.