Skip to content

Commit

Permalink
Fix setup_pip.ps1 for PyPy
Browse files Browse the repository at this point in the history
  • Loading branch information
MatteoH2O1999 committed Jun 20, 2023
1 parent 1d3b8d7 commit 721f2cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion setup_pip.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ $Version = $env:PYTHON_VERSION
$PythonPath = $env:SETUP_PYTHON_PATH
$Semver = $Version.Split('.')
Write-Output "Setting up pip for python $Version in path $PythonPath"
if ([int]$Semver[0] -eq 3 -and [int]$Semver[1] -lt 5) {
if (!($Semver[0] -like 'pypy*') -and ([int]$Semver[0] -eq 3 -and [int]$Semver[1] -lt 5)) {
if ([int]$Semver[1] -gt 2) {
Write-Output "Using get_pip.py..."
$VersionNumber = $Semver[0]
Expand Down

0 comments on commit 721f2cd

Please sign in to comment.