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'