Skip to content

Commit 4b3fbd2

Browse files
committed
Replace editable pip install with PYTHONPATH injection to avoid setuptools build env issues
1 parent c5a2192 commit 4b3fbd2

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.Pipelines/template-run-tests.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ steps:
1919
versionSpec: '$(python.version)'
2020
displayName: 'Set up Python'
2121

22-
- script: |
22+
- bash: |
2323
python -m pip install --upgrade pip
2424
grep -v '^-e' requirements.txt | pip install -r /dev/stdin
25-
pip install -e . --no-deps --no-build-isolation
25+
# Add the repo root to PYTHONPATH so 'import msal' resolves to this checkout
26+
# without needing an editable install (avoids setuptools build environment issues).
27+
echo "##vso[task.setvariable variable=PYTHONPATH]$(Build.SourcesDirectory):$PYTHONPATH"
2628
displayName: 'Install dependencies'
2729

2830
# Use bash: (not script:) so set -o pipefail works — script: uses /bin/sh on Linux

0 commit comments

Comments
 (0)