From 242f2620d1365bbebeae6a357c82e2d69f4226ac Mon Sep 17 00:00:00 2001 From: "Sun, Xuehao" Date: Mon, 16 Dec 2024 17:08:26 +0800 Subject: [PATCH] update install packages using wheel distribution Signed-off-by: Sun, Xuehao --- .azure-pipelines/template/ut-template.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/.azure-pipelines/template/ut-template.yml b/.azure-pipelines/template/ut-template.yml index e2c8c949..4efec29b 100644 --- a/.azure-pipelines/template/ut-template.yml +++ b/.azure-pipelines/template/ut-template.yml @@ -35,14 +35,15 @@ steps: - ${{ if eq(parameters.imageSource, 'build') }}: - script: | docker exec ${{ parameters.utContainerName }} bash -c "cd /auto-round \ - && pip install -vvv --no-build-isolation . \ + && python setup.py bdist_wheel \ + && pip install $(ls dist/*.whl | head -n 1)[cpu] \ && pip list" displayName: "Env Setup" - ${{ if eq(parameters.imageSource, 'pull') }}: - script: | docker exec ${{ parameters.utContainerName }} bash -c "cd /auto-round \ - && pip install -vvv --no-build-isolation . \ + && pip install $(ls dist/*.whl | head -n 1)[hpu] \ && pip list" displayName: "HPU Env Setup"