Skip to content

Commit b1e6a2b

Browse files
committed
Added a check after the python runtime to update library path
1 parent 28f6d88 commit b1e6a2b

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed

azure/build-prereqs.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,14 @@ steps:
2222
inputs:
2323
versionSpec: '3.13'
2424

25+
- bash: |
26+
echo "Checking the python version in use to set LD_LIBRARY_PATH"
27+
echo "Python version selected: $(PythonVersion)"
28+
echo "Python location: $(pythonLocation)"
29+
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(pythonLocation)/lib"
30+
displayName: 'Set LD_LIBRARY_PATH'
31+
32+
2533
- bash: |
2634
tfenv use 0.14.6
2735
displayName: setup terraform

azure/common/apigee-build.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,15 @@ jobs:
161161
inputs:
162162
versionSpec: ${{ parameters.python_version }}
163163

164+
165+
- bash: |
166+
echo "Checking the python version in use to set LD_LIBRARY_PATH"
167+
echo "Python version selected: $(PythonVersion)"
168+
echo "Python location: $(pythonLocation)"
169+
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(pythonLocation)/lib"
170+
displayName: 'Set LD_LIBRARY_PATH'
171+
172+
164173
- ${{ each cache_step in parameters.cache_steps }}:
165174
- ${{ cache_step }}
166175

azure/utils-pr-pipeline.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,13 @@ jobs:
4848
inputs:
4949
versionSpec: 3.13
5050

51+
- bash: |
52+
echo "Checking the python version in use to set LD_LIBRARY_PATH"
53+
echo "Python version selected: $(PythonVersion)"
54+
echo "Python location: $(pythonLocation)"
55+
echo "##vso[task.setvariable variable=LD_LIBRARY_PATH]$(pythonLocation)/lib"
56+
displayName: 'Set LD_LIBRARY_PATH'
57+
5158
- bash: |
5259
instance_id="$(curl -s http://169.254.169.254/latest/meta-data/instance-id)"
5360
echo instance-id: "${instance_id}"

0 commit comments

Comments
 (0)