Skip to content

Commit 8d1c3ff

Browse files
committed
ci: copy python.exe to python3.exe on Windows
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.
1 parent 1591a8e commit 8d1c3ff

File tree

1 file changed

+4
-0
lines changed
  • src/ci/azure-pipelines/steps

1 file changed

+4
-0
lines changed

src/ci/azure-pipelines/steps/run.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,10 @@ steps:
4242
fi
4343
displayName: Decide whether to run this job
4444
45+
- bash: cp $(which python) $(dirname $(which python))/python3.exe
46+
displayName: Copy python.exe to python3.exe
47+
condition: and(succeeded(), eq(variables['Agent.OS'], 'Windows_NT'))
48+
4549
# Spawn a background process to collect CPU usage statistics which we'll upload
4650
# at the end of the build. See the comments in the script here for more
4751
# information.

0 commit comments

Comments
 (0)