Skip to content

Commit

Permalink
Set pythonInterpreter in set-python-manylinux-variables-step.yml (#19105
Browse files Browse the repository at this point in the history
)

### Description
Set pythonInterpreter in set-python-manylinux-variables-step.yml. To fix
a build error:

```
Starting: Set Python manylinux variables
==============================================================================
Task         : Python script
Description  : Run a Python file or inline script
Version      : 0.231.1
Author       : Microsoft Corporation
Help         : https://docs.microsoft.com/azure/devops/pipelines/tasks/utility/python-script
==============================================================================
##[error]Parameter 'toolPath' cannot be null or empty.
Finishing: Set Python manylinux variables
```
The error was because today I deleted a bunch of software from the VM
image. The task might fail if no Python versions are found in
$(Agent.ToolsDirectory).
  • Loading branch information
snnn authored Jan 12, 2024
1 parent e3ee255 commit 2856061
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ steps:
- task: PythonScript@0
displayName: 'Set Python manylinux variables'
inputs:
pythonInterpreter: /usr/bin/python3
scriptSource: inline
script: |
version = "$(PythonVersion)"
Expand Down

0 comments on commit 2856061

Please sign in to comment.