-
Notifications
You must be signed in to change notification settings - Fork 124
Expand file tree
/
Copy pathinstall.ps1
More file actions
27 lines (22 loc) · 905 Bytes
/
Copy pathinstall.ps1
File metadata and controls
27 lines (22 loc) · 905 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<#
.SYNOPSIS
Apply the Python winget DSC configuration on Windows.
.DESCRIPTION
This script is a thin CI/dev shim. The core artifact for the Python flow is
`configuration.winget` in this directory — a winget DSC configuration that
declaratively installs CPython 3.14 and uv via winget.
The shim exists only to:
* apply the DSC config with retry (hosted-runner networks are flaky),
* rehydrate PATH in the current session so later CI steps see `python`,
`pip`, and `uv`,
* verify those commands resolve, and
* emit `INSTALL_OK: python` for the test harness.
#>
[CmdletBinding()]
param()
$ErrorActionPreference = 'Stop'
Set-StrictMode -Version Latest
& (Join-Path $PSScriptRoot '..\_common\apply-configuration.ps1') `
-Id 'python' `
-ConfigFile (Join-Path $PSScriptRoot 'configuration.winget') `
-RequireCommands @('python', 'pip', 'uv')