File tree 2 files changed +17
-3
lines changed
crates/uv/src/commands/python
2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change @@ -1582,6 +1582,20 @@ jobs:
1582
1582
- name : " Validate global Python install"
1583
1583
run : python ./scripts/check_system_python.py --uv ./uv.exe
1584
1584
1585
+ # NB: Run this last, we are modifying the registry
1586
+ - name : " Test PEP 514 registration"
1587
+ run : |
1588
+ ./uv.exe python install --preview 3.11
1589
+ ./uv.exe python install --preview 3.12
1590
+ ./uv.exe python install --preview 3.13
1591
+ Get-ChildItem -Path "HKCU:\Software\Python" -Recurse
1592
+ py --list-paths
1593
+ ./uv.exe python uninstall --preview 3.11
1594
+ Get-ChildItem -Path "HKCU:\Software\Python" -Recurse
1595
+ py --list-paths
1596
+ ./uv.exe python uninstall --preview --all
1597
+ Get-ChildItem -Path "HKCU:\Software\Python" -Recurse
1598
+
1585
1599
system-test-windows-python-313 :
1586
1600
timeout-minutes : 10
1587
1601
needs : build-binary-windows
Original file line number Diff line number Diff line change @@ -337,9 +337,9 @@ pub(crate) async fn install(
337
337
& mut errors,
338
338
) ?;
339
339
340
- # [ cfg ( windows ) ]
341
- {
342
- if preview . is_enabled ( ) {
340
+ if preview . is_enabled ( ) {
341
+ # [ cfg ( windows ) ]
342
+ {
343
343
uv_python:: windows_registry:: create_registry_entry ( installation, & mut errors) ?;
344
344
}
345
345
}
You can’t perform that action at this time.
0 commit comments