From b2f4595ed6edbb53b494e24a5939a596c8aa73be Mon Sep 17 00:00:00 2001 From: Gavin Aguiar Date: Fri, 15 Nov 2024 11:05:51 -0600 Subject: [PATCH] Updating build templates --- eng/templates/build.yml | 5 ++++- eng/templates/jobs/build.yml | 1 + 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/eng/templates/build.yml b/eng/templates/build.yml index 44603de8..605b3722 100644 --- a/eng/templates/build.yml +++ b/eng/templates/build.yml @@ -15,7 +15,10 @@ jobs: python --version displayName: 'Check python version' - bash: | + python -m venv .env + .env\Scripts\Activate.ps1 python -m pip install -U pip - pip install twine wheel + python -m pip install . + python -m pip install twine wheel python setup.py sdist bdist_wheel displayName: 'Build Python SDK' diff --git a/eng/templates/jobs/build.yml b/eng/templates/jobs/build.yml index faf01484..5c67bc73 100644 --- a/eng/templates/jobs/build.yml +++ b/eng/templates/jobs/build.yml @@ -11,6 +11,7 @@ jobs: displayName: 'Check python version' - bash: | python -m pip install -U pip + python -m pip install . pip install twine wheel python setup.py sdist bdist_wheel displayName: 'Build Python SDK'