Skip to content

Commit

Permalink
ci: copy python.exe to python3.exe on Windows
Browse files Browse the repository at this point in the history
Some of our CI scripts use `#!/usr/bin/env python3` which works fine on
Linux and macOS, but fails on Windows as only python.exe (pointing to
Python 3) is present. To avoid the failure this commit adds a step that
copies python.exe to python3.exe.
  • Loading branch information
pietroalbini committed Oct 14, 2019
1 parent 1591a8e commit 8d1c3ff
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/ci/azure-pipelines/steps/run.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ steps:
fi
displayName: Decide whether to run this job
- bash: cp $(which python) $(dirname $(which python))/python3.exe
displayName: Copy python.exe to python3.exe
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))

# Spawn a background process to collect CPU usage statistics which we'll upload
# at the end of the build. See the comments in the script here for more
# information.
Expand Down

0 comments on commit 8d1c3ff

Please sign in to comment.