Repository navigation
Commit 156dd51
Replace Python installations during build upgrades (#21323)
When the resolved Python key matched an installed interpreter but its
`BUILD` value differed, `uv python upgrade` recorded the new build
metadata while reusing the existing directory, leaving the old
interpreter bytes in place. Mark those keys for replacement before
extraction, so the selected build is installed before its metadata is
recorded.
```console
$ uv python upgrade 3.12
Installed Python 3.12.<latest>
~ cpython-3.12.<latest>-<platform>
$ python3.12 -c 'import sys; print(sys.version.split()[0])'
3.12.<latest>
```
Stacked on astral-sh#868.
Co-authored-by: Zanie Blue <[email protected]>1 parent 1a486d1 commit 156dd51
3 files changed
Lines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
599 | 599 | | |
600 | 600 | | |
601 | 601 | | |
| 602 | + | |
602 | 603 | | |
603 | 604 | | |
604 | 605 | | |
| |||
610 | 611 | | |
611 | 612 | | |
612 | 613 | | |
613 | | - | |
| 614 | + | |
614 | 615 | | |
615 | 616 | | |
616 | 617 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3975 | 3975 | | |
3976 | 3976 | | |
3977 | 3977 | | |
3978 | | - | |
| 3978 | + | |
3979 | 3979 | | |
3980 | 3980 | | |
3981 | 3981 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
668 | 668 | | |
669 | 669 | | |
670 | 670 | | |
671 | | - | |
| 671 | + | |
672 | 672 | | |
673 | 673 | | |
674 | 674 | | |
| |||
0 commit comments