File tree Expand file tree Collapse file tree 4 files changed +14
-8
lines changed
Expand file tree Collapse file tree 4 files changed +14
-8
lines changed Original file line number Diff line number Diff line change 2525
2626 - bash : |
2727 echo "Checking the python version in use to set LD_LIBRARY_PATH"
28- echo "Python version selected: $(UsePy.PythonVersion)"
2928 echo "Python location: $(UsePy.pythonLocation)"
3029 echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(UsePy.pythonLocation)/lib"
3130 displayName: 'Set LD_LIBRARY_PATH'
Original file line number Diff line number Diff line change @@ -165,7 +165,6 @@ jobs:
165165
166166 - bash : |
167167 echo "Checking the python version in use to set LD_LIBRARY_PATH"
168- echo "Python version selected: $(UsePy.PythonVersion)"
169168 echo "Python location: $(UsePy.pythonLocation)"
170169 echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(UsePy.pythonLocation)/lib"
171170 displayName: 'Set LD_LIBRARY_PATH'
Original file line number Diff line number Diff line change @@ -123,17 +123,26 @@ stages:
123123 role : " auto-ops"
124124 profile : " apm_${{ parameters.aws_account }}"
125125 aws_account : " ${{ parameters.aws_account }}"
126-
127- # - bash: |
128- # echo "Setting python tool cache path"
129- # echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]:/agent/_work/_tool/Python/${{ parameters.python_version }}/x64/lib/"
130- # displayName: 'Set python tool cache path'
126+
127+ - bash : |
128+ PATCH=$(curl -s https://api.github.com/repos/actions/python-versions/releases \
129+ | jq -r '[.[] | .tag_name | select(startswith("${{ parameters.python_version }}"))] | sort | last' \
130+ | cut -d- -f1)
131+ echo "Resolved latest python version: $PATCH"
132+ echo "##vso[task.setvariable variable=LD_LIBRARY_PATH;]/agent/_work/_tool/Python/${PATCH}/x64/lib/"
133+ displayName: 'Query and set python tool cache path'
131134
132135 - task : UsePythonVersion@0
133136 displayName : " Use Python ${{ parameters.python_version }}"
134137 inputs :
135138 versionSpec : ${{ parameters.python_version }}
136139
140+ - bash : |
141+ echo "Checking the python version in use to set LD_LIBRARY_PATH"
142+ echo "Python location: $(UsePy.pythonLocation)"
143+ echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(UsePy.pythonLocation)/lib"
144+ displayName: 'Set LD_LIBRARY_PATH'
145+
137146 - template : " ../components/set-facts.yml"
138147 parameters :
139148 service_name : ${{ parameters.service_name }}
Original file line number Diff line number Diff line change 5151
5252 - bash : |
5353 echo "Checking the python version in use to set LD_LIBRARY_PATH"
54- echo "Python version selected: $(UsePy.PythonVersion)"
5554 echo "Python location: $(UsePy.pythonLocation)"
5655 echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(UsePy.pythonLocation)/lib"
5756 displayName: 'Set LD_LIBRARY_PATH'
You can’t perform that action at this time.
0 commit comments