zlacker

[return to "Constraints Are Good: Python's Metadata Dilemma"]
1. pdonis+FYm[view] [source] 2024-12-06 17:38:35
>>ingve+(OP)
A lot of the problem seems to be driven by a desire to have editable installs. I personally have never understood why having editable installs is such an important need. When I'm working on a Python package and need to test something, I just run

python -m pip install --user <package_name>

and I now have a local installation that I can use for testing.

◧◩
2. the_mi+c1n[view] [source] 2024-12-06 17:52:27
>>pdonis+FYm
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.

◧◩◪
3. pdonis+s4n[view] [source] 2024-12-06 18:12:08
>>the_mi+c1n
> 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.

◧◩◪◨
4. pauldd+kwn[view] [source] 2024-12-06 20:35:03
>>pdonis+s4n
I.e. orders of magnitude longer
◧◩◪◨⬒
5. pdonis+xco[view] [source] 2024-12-07 02:19:49
>>pauldd+kwn
Orders of magnitude longer than what?
◧◩◪◨⬒⬓
6. the_mi+rVo[view] [source] 2024-12-07 13:02:46
>>pdonis+xco
Than 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.
◧◩◪◨⬒⬓⬔
7. pdonis+vQr[view] [source] 2024-12-08 21:35:12
>>the_mi+rVo
> 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.

◧◩◪◨⬒⬓⬔⧯
8. the_mi+w9u[view] [source] 2024-12-09 19:32:06
>>pdonis+vQr
> 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.

[go to top]