diff --git a/eng/pipelines/templates/jobs/regression.yml b/eng/pipelines/templates/jobs/regression.yml index 4fa0629ed1be..9f71e39c632c 100644 --- a/eng/pipelines/templates/jobs/regression.yml +++ b/eng/pipelines/templates/jobs/regression.yml @@ -86,7 +86,7 @@ jobs: - pwsh: | mkdir -p $(TEST_PROXY_FOLDER) - python -m pip install -r eng/regression_tools.txt + $(PIP_EXE) install -r eng/regression_tools.txt displayName: 'Prep Environment' - template: /eng/common/testproxy/test-proxy-tool.yml diff --git a/eng/scripts/Language-Settings.ps1 b/eng/scripts/Language-Settings.ps1 index a1fd500691ca..e1002f997a5f 100644 --- a/eng/scripts/Language-Settings.ps1 +++ b/eng/scripts/Language-Settings.ps1 @@ -161,19 +161,21 @@ function Get-AllPackageInfoFromRepo ($serviceDirectory) $allPkgPropLines = $null try { + $pathToBuild = (Join-Path $RepoRoot "tools" "azure-sdk-tools[build]") # Use ‘uv pip install’ if uv is on PATH, otherwise fall back to python -m pip if (Get-Command uv -ErrorAction SilentlyContinue) { Write-Host "Using uv pip install" - $null = uv pip install "./tools/azure-sdk-tools[build]" + $null = uv pip install "$pathToBuild" $freezeOutput = uv pip freeze Write-Host "Pip freeze output: $freezeOutput" } else { Write-Host "Using python -m pip install" - $null = python -m pip install "./tools/azure-sdk-tools[build]" -q -I + $null = python -m pip install "$pathToBuild" -q -I } - Write-Host "Running get_package_properties.py to retrieve package properties" - $allPkgPropLines = python (Join-path eng scripts get_package_properties.py) -s $searchPath + $scriptLoc = Join-path $RepoRoot eng scripts get_package_properties.py + Write-Host "Running '$scriptLoc' to retrieve package properties" + $allPkgPropLines = python "$scriptLoc" -s "$(Join-Path $RepoRoot $searchPath)" } catch {