|
10 | 10 | variables:
|
11 | 11 | BUILD_COMMIT: "v1.18.2"
|
12 | 12 | NIGHTLY_BUILD_COMMIT: "master"
|
13 |
| - NIGHTLY_BUILD: "false" |
14 |
| - PYTHON_ARCH: "x64" |
15 | 13 | JUNITXML: "test-data.xml"
|
16 | 14 | TEST_DIR: '$(Agent.WorkFolder)/tmp_for_test'
|
17 | 15 | strategy:
|
|
24 | 22 | - task: UsePythonVersion@0
|
25 | 23 | inputs:
|
26 | 24 | versionSpec: $(PYTHON_VERSION)
|
| 25 | + addToPath: true |
27 | 26 | architecture: $(PYTHON_ARCH)
|
28 | 27 | displayName: Set python version
|
29 | 28 |
|
@@ -60,23 +59,37 @@ jobs:
|
60 | 59 | git reset --hard
|
61 | 60 | displayName: Checkout numpy commit
|
62 | 61 | condition: eq(variables['SKIP_BUILD'], 'false')
|
63 |
| - - bash: | |
64 |
| - set -e |
65 |
| - pushd numpy |
| 62 | +
|
| 63 | + - powershell: | |
| 64 | + choco install -y mingw --forcex86 --force --version=5.3.0 |
| 65 | + $env:CFLAGS = "-m32" |
| 66 | + $env:LDFLAGS = "-m32" |
| 67 | + $env:PATH = "C:\\tools\\mingw32\\bin;" + $env:PATH |
| 68 | + refreshenv |
| 69 | + displayName: 'Install 32-bit mingw for 32-bit builds' |
| 70 | + condition: eq(variables['BITS'], 32) |
| 71 | + - powershell: | |
66 | 72 | pip install twine wheel urllib3
|
67 | 73 | # a bit overkill, all we really need is cython
|
68 |
| - pip install --timeout=60 -r test_requirements.txt |
| 74 | + pip install --timeout=60 -r numpy/test_requirements.txt |
69 | 75 |
|
70 | 76 | # handle license
|
71 |
| - cp ../LICENSE_win32.txt LICENSE.txt |
| 77 | + cp LICENSE_win32.txt numpy/LICENSE.txt |
72 | 78 |
|
73 |
| - # Download and install static "openblas.a" to PYTHON/lib |
74 |
| - PYTHON_DIR=$(python -c"import sys, os; print(os.path.dirname(sys.executable))") |
75 |
| - LIB=$(python tools/openblas_support.py) |
76 |
| - echo Copying $LIB to $PYTHON_DIR/lib |
77 |
| - cp $LIB $PYTHON_DIR/lib/openblas.a |
| 79 | + # Download and copy static "openblas.a", put it into LIB |
| 80 | + $libdir = Join-Path $PSScriptRoot "OPENBLAS_LIB" |
| 81 | + mkdir $libdir |
| 82 | + $openblas_lib=$( python numpy/tools/openblas_support.py ) |
| 83 | + echo Copying $openblas_lib to $libdir |
| 84 | + cp $openblas_lib $libdir/openblas.a |
| 85 | + $env:LIB = $libdir + ";" + $env:LIB |
| 86 | + displayName: Prepare the build |
| 87 | + condition: eq(variables['SKIP_BUILD'], 'false') |
78 | 88 |
|
| 89 | + - bash: | |
79 | 90 | # Build the wheel
|
| 91 | + set -e |
| 92 | + pushd numpy |
80 | 93 | python setup.py build
|
81 | 94 | python setup.py bdist_wheel
|
82 | 95 | ls dist
|
|
0 commit comments