From 17063459c7e4e2a660a7c17f158fff2888cf3475 Mon Sep 17 00:00:00 2001 From: Alexander Kislukhin <47034358+liquidcarbon@users.noreply.github.com> Date: Tue, 21 May 2024 17:03:09 -0600 Subject: [PATCH] ps1 script update --- .github/workflows/pup.yml | 3 +++ pup.ps1 | 5 +++-- pup.sh | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pup.yml b/.github/workflows/pup.yml index 8d894f4..a5efdee 100644 --- a/.github/workflows/pup.yml +++ b/.github/workflows/pup.yml @@ -27,3 +27,6 @@ jobs: - name: Install puppy3.11 run: | & ([scriptblock]::Create((iwr -useb $env:MAIN_BRANCH_URL/pup.ps1).Content)) 3.11 + - name: Create alias and run a pup command + run: | + iex ((iwr $env:MAIN_BRANCH_URL/pup.ps1).Content -split "`n")[-2] ; pup which \ No newline at end of file diff --git a/pup.ps1 b/pup.ps1 index 4065b7f..cd09f22 100644 --- a/pup.ps1 +++ b/pup.ps1 @@ -95,6 +95,7 @@ get_pup function get_pixi { if (!(Get-Command -Name pixi -ErrorAction SilentlyContinue)) { iwr -useb $PIXI_INSTALL_URL | iex + Write-Host "✨ $(pixi -V) installed" } else { Write-Host "✨ $(pixi -V) found" @@ -108,7 +109,7 @@ function pixi_init { Write-Host "✨ here be pixies! pixi.toml found in $PIXI_PUP_HOME" } else { - pixi init "$PIXI_PUP_HOME" + pixi init "$env:PIXI_PUP_HOME" } } pixi_init @@ -138,7 +139,7 @@ function get_python_uv_click { if ($INSTALL -eq 1) { pixi add "python=$PY_VERSION" - pixi add uv + pixi add uv; Write-Host "🟣 $(pixi run uv --version)" pixi add click } else { diff --git a/pup.sh b/pup.sh index a93a18d..4972416 100755 --- a/pup.sh +++ b/pup.sh @@ -125,7 +125,7 @@ get_python_uv_click() { pixi add uv && echo "🟣 $(pixi run uv --version)" pixi add click else - echo "python lives here!" + echo "🐍 python lives here!" fi pixi run python -VV PYTHON_EXECUTABLE=$(pixi run python -c 'import sys; print(sys.executable)')