Skip to content

Commit 72a35c9

Browse files
committed
fix: remove pyenv shims from PATH to prevent python interception
The pyenv-win shims directory intercepts the python command, causing 'python -m venv .venv' to fail with 'No global/local python version has been set yet'. Only the bin directory is needed for the pyenv command itself.
1 parent 0737d2f commit 72a35c9

3 files changed

Lines changed: 0 additions & 6 deletions

File tree

.github/workflows/coverage-baseline.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,9 +81,7 @@ jobs:
8181
run: |
8282
Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
8383
$pyenvBin = "$env:USERPROFILE\.pyenv\pyenv-win\bin"
84-
$pyenvShims = "$env:USERPROFILE\.pyenv\pyenv-win\shims"
8584
echo "$pyenvBin" >> $env:GITHUB_PATH
86-
echo "$pyenvShims" >> $env:GITHUB_PATH
8785
echo "PYENV_ROOT=$env:USERPROFILE\.pyenv" >> $env:GITHUB_ENV
8886
shell: pwsh
8987

.github/workflows/coverage.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@ jobs:
110110
run: |
111111
Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
112112
$pyenvBin = "$env:USERPROFILE\.pyenv\pyenv-win\bin"
113-
$pyenvShims = "$env:USERPROFILE\.pyenv\pyenv-win\shims"
114113
echo "$pyenvBin" >> $env:GITHUB_PATH
115-
echo "$pyenvShims" >> $env:GITHUB_PATH
116114
echo "PYENV_ROOT=$env:USERPROFILE\.pyenv" >> $env:GITHUB_ENV
117115
shell: pwsh
118116

.github/workflows/pr-check.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,7 @@ jobs:
115115
run: |
116116
Invoke-WebRequest -UseBasicParsing -Uri "https://raw.githubusercontent.com/pyenv-win/pyenv-win/master/pyenv-win/install-pyenv-win.ps1" -OutFile "./install-pyenv-win.ps1"; &"./install-pyenv-win.ps1"
117117
$pyenvBin = "$env:USERPROFILE\.pyenv\pyenv-win\bin"
118-
$pyenvShims = "$env:USERPROFILE\.pyenv\pyenv-win\shims"
119118
echo "$pyenvBin" >> $env:GITHUB_PATH
120-
echo "$pyenvShims" >> $env:GITHUB_PATH
121119
echo "PYENV_ROOT=$env:USERPROFILE\.pyenv" >> $env:GITHUB_ENV
122120
shell: pwsh
123121

0 commit comments

Comments
 (0)