9
9
- script : python -m pip install -r test_requirements.txt
10
10
displayName : ' Install dependencies; some are optional to avoid test skips'
11
11
- powershell : |
12
- $pyversion = python -c "from __future__ import print_function; import sys; print(sys.version.split()[0])"
13
- Write-Host "Python Version: $pyversion"
14
- $target = "C:\\hostedtoolcache\\windows\\Python\\$pyversion\\$(PYTHON_ARCH)\\lib\\openblas$env:OPENBLAS_SUFFIX.a"
15
- Write-Host "target path: $target"
16
- $openblas = python tools/openblas_support.py
17
- cp $openblas $target
12
+ $ErrorActionPreference = "Stop"
13
+ # Download and get the path to "openblas.a". We cannot copy it
14
+ # to $PYTHON_EXE's directory since that is on a different drive which
15
+ # mingw does not like. Instead copy it to a directory and set OPENBLAS,
16
+ # since OPENBLAS will be picked up by the openblas discovery
17
+ python -m pip install urllib3
18
+ $target = $(python tools/openblas_support.py)
19
+ mkdir openblas
20
+ echo Copying $target to openblas/openblas$env:OPENBLAS_SUFFIX.a
21
+ cp $target openblas/openblas$env:OPENBLAS_SUFFIX.a
22
+ If ( Test-Path env:NPY_USE_BLAS_ILP64 ){
23
+ echo "##vso[task.setvariable variable=OPENBLAS64_]$pwd\openblas"
24
+ } else {
25
+ echo "##vso[task.setvariable variable=OPENBLAS]$pwd\openblas"
26
+ }
18
27
displayName : ' Download / Install OpenBLAS'
19
28
20
29
- powershell : |
@@ -31,15 +40,15 @@ steps:
31
40
refreshenv
32
41
}
33
42
python -c "from tools import openblas_support; openblas_support.make_init('numpy')"
34
- pip wheel -v -v -v --wheel-dir=dist .
43
+ pip wheel -v -v -v --no-build-isolation --no-use-pep517 -- wheel-dir=dist .
35
44
36
45
ls dist -r | Foreach-Object {
37
46
pip install $_.FullName
38
47
}
39
48
displayName : ' Build NumPy'
40
49
- bash : |
41
50
pushd . && cd .. && target=$(python -c "import numpy, os; print(os.path.abspath(os.path.join(os.path.dirname(numpy.__file__), '.libs')))") && popd
42
- pip download -d destination --only-binary --no-deps numpy==1.14
51
+ pip download -d destination --only-binary :all: --no-deps numpy==1.14
43
52
cd destination && unzip numpy*.whl && cp numpy/.libs/*.dll $target
44
53
ls $target
45
54
displayName : ' Add extraneous & older DLL to numpy/.libs to probe DLL handling robustness'
53
62
inputs :
54
63
testResultsFiles : ' **/test-*.xml'
55
64
failTaskOnFailedTests : true
56
- testRunTitle : ' Publish test results for Python $(PYTHON_VERSION) $(BITS)-bit $(TEST_MODE) Windows'
65
+ testRunTitle : ' Publish test results for Python $(PYTHON_VERSION) $(BITS)-bit $(TEST_MODE) Windows'
0 commit comments