From d876a4c1e11dae80a06d1fdcb64b464cbb508bd5 Mon Sep 17 00:00:00 2001 From: Clinton Hall Date: Wed, 28 Feb 2024 13:39:38 +1300 Subject: [PATCH] fix setuptools in publish --- azure-pipelines.yml | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/azure-pipelines.yml b/azure-pipelines.yml index b4b8d7da..e9f5d389 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -61,17 +61,13 @@ jobs: dependsOn: 'Test' pool: vmImage: 'Ubuntu-latest' - - steps: - - script: | - sudo apt-get update - sudo apt-get install python3-setuptools - displayName: 'Install setuptools' - + - task: UsePythonVersion@0 inputs: versionSpec: '3.x' architecture: 'x64' - - script: python setup.py sdist + - script: | + python -m pip install setuptools + python setup.py sdist displayName: 'Build sdist'