Skip to content

Commit d0ae803

Browse files
committed
Install VC for Python 2.7 only for py27-trial, only one that needs it
1 parent 4f2244c commit d0ae803

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

azure-pipelines.yml

+8-3
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ trigger:
44

55
variables:
66
PYTEST_ADDOPTS: "--junitxml=build/test-results/$(tox.env).xml"
7+
python.needs_vc: False
78

89
jobs:
910

@@ -18,9 +19,13 @@ jobs:
1819
py27-xdist:
1920
python.version: '2.7'
2021
tox.env: 'py27-xdist'
21-
py27-trial/numpy/nobyte:
22+
py27-numpy/nobyte:
2223
python.version: '2.7'
23-
tox.env: 'py27-trial,py27-numpy,py27-nobyte'
24+
tox.env: 'py27-numpy,py27-nobyte'
25+
py27-trial:
26+
python.version: '2.7'
27+
tox.env: 'py27-trial'
28+
python.needs_vc: True
2429
py27-pluggymaster:
2530
python.version: '2.7'
2631
tox.env: 'pluggymaster'
@@ -60,7 +65,7 @@ jobs:
6065
architecture: 'x64'
6166

6267
- script: choco install vcpython27
63-
condition: eq(variables['python.version'], '2.7')
68+
condition: eq(variables['python.needs_vc'], True)
6469
displayName: 'Install VC for py27'
6570

6671
- script: python -m pip install --upgrade pip && pip install tox

0 commit comments

Comments
 (0)