Skip to content

Commit

Permalink
ps1 script update
Browse files Browse the repository at this point in the history
  • Loading branch information
liquidcarbon authored May 21, 2024
1 parent d0d91ac commit 1706345
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/pup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
5 changes: 3 additions & 2 deletions pup.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion pup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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)')
Expand Down

0 comments on commit 1706345

Please sign in to comment.