Print warning if deprecated --include-python flag is given

This commit is contained in:
Reinier Criel 2025-12-16 14:47:53 +01:00
parent 6beb962282
commit 037a83e1ff
5 changed files with 109 additions and 2 deletions

View file

@ -3,7 +3,9 @@
# Usage with "iex (iwr {url} -UseBasicParsing)" --> See README.md
param(
[switch]$ci
[switch]$ci,
# Backwards compatibility: deprecated; warn and ignore if supplied
[switch]$includepython
)
$Version = $env:SAFE_CHAIN_VERSION # Will be fetched from latest release if not set
@ -119,6 +121,9 @@ function Install-SafeChain {
if ($ci) {
$installMsg += " in ci"
}
if ($includepython) {
Write-Warn "-includepython is deprecated and ignored. Python ecosystem is now included by default."
}
Write-Info $installMsg