Unverified Commit 1b4377fc authored by Hongtao Zhang's avatar Hongtao Zhang Committed by GitHub
Browse files

CI/CD - Fix Azure test pipeline (#754)

Python3.10 verification pipeline failed for conflict 'setuptools'
version as below.
<img width="1157" height="622" alt="image"
src="https://github.com/user-attachments/assets/ba0f6045-4b92-4fd8-b92f-1c474725534c

"
/>

Root Cause:
The problem is that modern pip (25.3) uses an isolated build environment
with the latest setuptools by default. The pipeline installs setuptools
65.7 in the user environment, but pip builds the package in an isolated
environment with newer setuptools, which conflicts with the version
check in [setup.py].

Solution:
Remove pip upgrade.

---------
Co-authored-by: default avatarHongtao Zhang <hongtaozhang@microsoft.com>
parent f6e65a98
...@@ -27,9 +27,7 @@ steps: ...@@ -27,9 +27,7 @@ steps:
displayName: Export path displayName: Export path
- script: | - script: |
if python3 -c "import sys; exit(0 if sys.version_info < (3, 11) else 1)"; then if python3 -c "import sys; exit(0 if sys.version_info < (3, 11) else 1)"; then
python3 -m pip install --upgrade pip setuptools==65.7 python3 -m pip install --upgrade setuptools==65.7
else
python3 -m pip install --upgrade pip
fi fi
python3 -m pip install .[test,cpuworker] python3 -m pip install .[test,cpuworker]
make postinstall make postinstall
......
...@@ -24,7 +24,7 @@ steps: ...@@ -24,7 +24,7 @@ steps:
yes '' | apt-get install -y -q sudo && \ yes '' | apt-get install -y -q sudo && \
apt-get install -y -q \ apt-get install -y -q \
ffmpeg libavcodec-dev libavformat-dev libavutil-dev libboost-program-options-dev libswresample-dev" ffmpeg libavcodec-dev libavformat-dev libavutil-dev libboost-program-options-dev libswresample-dev"
python3 -m pip install --upgrade pip setuptools==65.7 python3 -m pip install --upgrade setuptools==65.7
python3 -m pip install .[test,nvworker] python3 -m pip install .[test,nvworker]
make postinstall make postinstall
displayName: Install dependencies displayName: Install dependencies
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment