Commit be1b606
piptree: record the no-subprocess constraint
piptree runs inside JupyterLite/Pyodide, where no process can be spawned.
PipData, pip_list, down and up are pure importlib.metadata + pathlib
today; only Distribution, -md, -i and -u spawn, and those are Windows-
only. Nothing enforced that, and the obvious fix for the cross-version
marker bug -- ask the target interpreter over subprocess -- would have
landed squarely on the portable path, on every run.
So write it down where someone would reach for it: the module docstring,
and _get_environment(), which is where the temptation is. The docstring
also points at the file-based alternative: pyvenv.cfg carries
"version = 3.13.7" for a venv, python313.dll at the root gives
major.minor for a plain install or WinPython, and neither is needed
unless target differs from the running interpreter.
Comments only, no behaviour change.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent d6e1bc8 commit be1b606
1 file changed
Lines changed: 21 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
6 | 12 | | |
7 | 13 | | |
8 | 14 | | |
| |||
58 | 64 | | |
59 | 65 | | |
60 | 66 | | |
61 | | - | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
62 | 82 | | |
63 | 83 | | |
64 | 84 | | |
| |||
0 commit comments