File tree Expand file tree Collapse file tree 1 file changed +20
-0
lines changed
Expand file tree Collapse file tree 1 file changed +20
-0
lines changed Original file line number Diff line number Diff line change 6060 debug : true
6161 displayName : cache utils pre-requisites
6262
63+ - bash : |
64+ PATCH=$(curl -s https://api.github.com/repos/actions/python-versions/releases \
65+ | jq -r '[.[] | .tag_name | select(startswith("3.13"))] | .[]' \
66+ | sort -V | tail -n 1 | cut -d- -f1)
67+ echo "Resolved latest python version: $PATCH"
68+ echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/${PATCH}/x64/lib/"
69+ displayName: 'Query and set python tool cache path'
70+
71+ - task : UsePythonVersion@0
72+ name : UsePy
73+ displayName : " Use Python 3.13"
74+ inputs :
75+ versionSpec : 3.13
76+
77+ - bash : |
78+ echo "Checking the python version in use to set LD_LIBRARY_PATH"
79+ echo "Python location: $(UsePy.pythonLocation)"
80+ echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(UsePy.pythonLocation)/lib"
81+ displayName: 'Set LD_LIBRARY_PATH'
82+
6383 - bash : |
6484 make install
6585 displayName: install dependencies
You can’t perform that action at this time.
0 commit comments