Commit Graph

2 Commits

Author SHA1 Message Date
ethernet
e65683aa50 fix(pm): make _marker_eval importable without arguments
The import-all check imports every module; run the evaluation only as a script.
2026-09-24 15:13:52 -04:00
ethernet
ab456786a1 fix(pm): judge extra platform gates without packaging in the caller
The historical update takeover runs PM in the OLD venv's interpreter, which
need not ship `packaging`. Carrying lazily installed extras into the first PM
generation made legacy_selection() evaluate every platform gate there, so
every update from an old release failed with "No module named 'packaging'".

When `packaging` is missing, evaluate the marker in PM's runtime (which owns
it), and only judge gates for extras the old venv actually carried. The
takeover fixture now carries a gated extra under -S, reproducing the failure.
2026-09-24 15:13:18 -04:00