38
38
ps -ef | grep $$
39
39
conda list
40
40
grep '^#' "${CONDA_PREFIX}/conda-meta/history"
41
- if [ "$PYTHON_VERSION" = "2.7" ]; then
42
- # No Python 2.7 builds after conda=4.8.4 available.
43
- conda install python=$PYTHON_VERSION conda\<=4.8.4 -y
44
- else
45
- conda install python=$PYTHON_VERSION -y
46
- fi
41
+ conda install python=$PYTHON_VERSION -y
47
42
mkdir -p /usr/share/miniconda/locks
48
43
mkdir -p /usr/share/miniconda/bin
49
44
chmod a-w /usr/share/miniconda/locks
89
84
90
85
- publish : $(Build.ArtifactStagingDirectory)/pytest-replay
91
86
artifact : ' Linux-$(CONDA_VERSION)-Py$(PYTHON_VERSION)'
92
- condition : and( always(), ne(variables['PYTHON_VERSION'], '2.7') )
87
+ condition : always()
93
88
94
89
95
90
- job : ' macOS'
@@ -153,12 +148,7 @@ jobs:
153
148
conda info
154
149
conda list
155
150
grep '^#' "${CONDA_PREFIX}/conda-meta/history"
156
- if [ "$PYTHON_VERSION" = "2.7" ]; then
157
- # No Python 2.7 builds after conda=4.8.4 available.
158
- conda install python=$PYTHON_VERSION conda\<=4.8.4 -y
159
- else
160
- conda install python=$PYTHON_VERSION -y
161
- fi
151
+ conda install python=$PYTHON_VERSION -y
162
152
mkdir -p $(Build.StagingDirectory)/miniconda/locks
163
153
mkdir -p $(Build.StagingDirectory)/miniconda/bin
164
154
chmod -w $(Build.StagingDirectory)/miniconda/locks
@@ -205,7 +195,7 @@ jobs:
205
195
206
196
- publish : $(Build.ArtifactStagingDirectory)/pytest-replay
207
197
artifact : ' macOS-$(CONDA_VERSION)-Py$(PYTHON_VERSION)'
208
- condition : and( always(), ne(variables['PYTHON_VERSION'], '2.7') )
198
+ condition : always()
209
199
210
200
211
201
- job : ' Windows'
@@ -237,8 +227,14 @@ jobs:
237
227
inputs :
238
228
versionSpec : ' $(PYTHON_VERSION)'
239
229
240
- - script : |
241
- choco install vcpython27 -fdv -y --debug
230
+ # SHA256 checksum (070474db76a2e625513a5835df4595df9324d820f9cc97eab2a596dcbc2f5cbf) is identical for
231
+ # https://web.archive.org/web/20210106040224/https://download.microsoft.com/download/7/9/6/796EF2E4-801B-4FC4-AB28-B59FBF6D907B/VCForPython27.msi
232
+ # and
233
+ # https://github.com/GeoNode/geonode-win-installer/raw/ffb76c7cbf1d6b4970c6c25f79c3c7682a3aa035/VCForPython27.msi
234
+ - powershell : |
235
+ $wc = New-Object net.webclient
236
+ $wc.Downloadfile("https://github.com/GeoNode/geonode-win-installer/raw/ffb76c7cbf1d6b4970c6c25f79c3c7682a3aa035/VCForPython27.msi", "VCForPython27.msi")
237
+ Start-Process "VCForPython27.msi" /qn -Wait
242
238
displayName: Install vcpython27.msi
243
239
244
240
- script : |
@@ -281,8 +277,7 @@ jobs:
281
277
set PATH
282
278
call %UserProfile%\Miniconda3\condabin\activate.bat base||exit 1
283
279
set PATH
284
- :: No Python 2.7 builds after conda=4.8.4 available.
285
- if "%PYTHON_VERSION%" == "2.7" (call conda install python="%PYTHON_VERSION%" "conda<=4.8.4" -y||exit 1) else (call conda install python="%PYTHON_VERSION%" -y||exit 1)
280
+ call conda install python="%PYTHON_VERSION%" -y||exit 1
286
281
if "%CONDA_VERSION%" == "canary" (call conda update -c conda-canary conda||exit 1) else (call conda update -q conda||exit 1)
287
282
call conda config --set always_yes yes
288
283
call conda config --set auto_update_conda no
@@ -292,12 +287,10 @@ jobs:
292
287
python -c "import sys; print(sys.prefix)"
293
288
call conda update -q --all||exit 1
294
289
call conda install -q pip python-libarchive-c pytest git pytest-cov jinja2 m2-patch flake8 mock requests contextlib2 chardet glob2 perl pyflakes pycrypto posix m2-git anaconda-client numpy beautifulsoup4 pytest-xdist pytest-mock filelock pkginfo psutil pytz tqdm conda-package-handling pytest-azurepipelines||exit 1
295
- if "%PYTHON_VERSION%" == "2.7" call conda install -c defaults -c conda-forge pytest-replay pytest-rerunfailures "coverage<5.0|>5.0" -y||exit 1
296
- if "%PYTHON_VERSION%" NEQ "2.7" call conda install pytest-replay pytest-rerunfailures -y||exit 1
290
+ call conda install pytest-replay pytest-rerunfailures -y||exit 1
297
291
echo safety_checks: disabled >> %UserProfile%\.condarc
298
292
echo local_repodata_ttl: 1800 >> %UserProfile%\.condarc
299
- if "%PYTHON_VERSION%" == "2.7" call conda install -q scandir pathlib2||exit 1
300
- if "%PYTHON_VERSION%" NEQ "2.7" call conda install -q py-lief||exit 1
293
+ call conda install -q py-lief||exit 1
301
294
python --version
302
295
python -c "import struct; print(struct.calcsize('P') * 8)"
303
296
pip install --no-deps .
@@ -311,8 +304,7 @@ jobs:
311
304
call conda create -n blarg -yq --download-only python=3.8||exit 1
312
305
call conda create -n blarg -yq --download-only python cmake||exit 1
313
306
mkdir $(Build.ArtifactStagingDirectory)\\pytest-replay
314
- set "PYTEST_REPLAY_OPTIONS=--replay-record-dir=$(Build.ArtifactStagingDirectory)\\pytest-replay"
315
- if "%PYTHON_VERSION%" NEQ "2.7" set "PYTEST_REPLAY_OPTIONS=--replay-record-dir=$(Build.ArtifactStagingDirectory)\\pytest-replay --replay-base-name=Win-%CONDA_VERSION%-Py%PYTHON_VERSION%"
307
+ set "PYTEST_REPLAY_OPTIONS=--replay-record-dir=$(Build.ArtifactStagingDirectory)\\pytest-replay --replay-base-name=Win-%CONDA_VERSION%-Py%PYTHON_VERSION%"
316
308
echo "##vso[task.setvariable variable=PYTEST_REPLAY_OPTIONS]%PYTEST_REPLAY_OPTIONS%"
317
309
displayName: 'Configuration'
318
310
0 commit comments