@@ -84,90 +84,6 @@ stages:
8484 python3 -m pytest --pyargs numpy"
8585 displayName: 'Run 32-bit manylinux2014 Docker Build / Tests'
8686
87-
88- - job : macOS
89- pool :
90- vmImage : ' macOS-11'
91- strategy :
92- maxParallel : 2
93- matrix :
94- Python39 :
95- PYTHON_VERSION : ' 3.9'
96- Python39-ILP64 :
97- PYTHON_VERSION : ' 3.9'
98- NPY_USE_BLAS_ILP64 : ' 1'
99- steps :
100- - script : |
101- git submodule update --init
102- displayName: 'Fetch submodules'
103- # the @0 refers to the (major) version of the *task* on Microsoft's
104- # end, not the order in the build matrix nor anything to do
105- # with version of Python selected
106- - task : UsePythonVersion@0
107- inputs :
108- versionSpec : $(PYTHON_VERSION)
109- addToPath : true
110- architecture : ' x64'
111- - script : |
112- set -xe
113- [ -n "$USE_XCODE_10" ] && /bin/bash -c "sudo xcode-select -s /Applications/Xcode_10.app/Contents/Developer"
114- clang --version
115- displayName: 'report clang version'
116-
117- - script : |
118- if [[ $PLATFORM == "macosx-arm64" ]]; then
119- PLAT="arm64"
120- fi
121- source tools/wheels/gfortran_utils.sh
122- install_gfortran
123- displayName: 'install gfortran'
124- # use the pre-built openblas binary that most closely matches our MacOS
125- # wheel builds -- currently based primarily on file size / name details
126- - script : |
127- set -xe
128- target=$(python tools/openblas_support.py)
129- ls -lR $target
130- # manually link to appropriate system paths
131- cp $target/lib/lib* /usr/local/lib/
132- cp $target/include/* /usr/local/include/
133- otool -L /usr/local/lib/libopenblas*
134- displayName: 'install pre-built openblas'
135- - script : python -m pip install --upgrade pip
136- displayName : ' Install tools'
137- - script : |
138- python -m pip install -r test_requirements.txt
139- # Don't use doc_requirements.txt since that messes up tests
140- python -m pip install vulture sphinx==4.3.0 numpydoc==1.4.0 ninja
141- displayName: 'Install dependencies; some are optional to avoid test skips'
142- - script : /bin/bash -c "! vulture . --min-confidence 100 --exclude doc/,numpy/distutils/ | grep 'unreachable'"
143- displayName : ' Check for unreachable code paths in Python modules'
144-
145- - script : git submodule update --init
146- displayName : ' Fetch submodules'
147-
148- # TODO: pick up the correct OpenBLAS libraries once we can install those through wheels
149- - script : python -m pip install . -Ccompile-args="-j4" -Csetup-args="-Dallow-noblas=true"
150- displayName : ' Build NumPy'
151-
152- # only install matplotlib here, to avoid pulling in an older numpy
153- - script : python -m pip install matplotlib
154- displayName : ' Install matplotlib before refguide run'
155-
156- - script : |
157- set -xe
158- cd tools
159- python refguide_check.py --doctests
160- displayName: 'Run Refguide Check'
161-
162- - script : |
163- cd tools
164- echo LIBRARY_PATH ${LIBRARY_PATH}
165- pytest --pyargs numpy
166- displayName: 'Run Full NumPy Test Suite'
167- env:
168- # gfortran installed above adds -lSystem, so this is needed to find it (gh-22043)
169- LIBRARY_PATH: /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/lib
170-
17187 - job : Windows
17288 pool :
17389 vmImage : ' windows-2019'
@@ -196,29 +112,3 @@ stages:
196112
197113 steps :
198114 - template : azure-steps-windows.yml
199-
200-
201- - job : Linux_conda
202- pool :
203- vmImage : ' ubuntu-20.04'
204- steps :
205- - script : |
206- git submodule update --init
207- displayName: 'Fetch submodules'
208- - script : |
209- conda env create -f environment.yml
210- displayName: 'Create conda environment.'
211- - script : |
212- # >>> conda initialize >>>
213- # !! Contents within this block are 'conda init' !!
214- # see https://github.com/conda/conda/issues/7980
215- __conda_setup="$('conda' 'shell.bash' 'hook' 2> /dev/null)"
216- eval "$__conda_setup"
217- unset __conda_setup
218- # <<< conda initialize <<<
219- conda activate numpy-dev
220- # Note: conda env activation doesn't carry over between steps, so
221- # build/test are both in this step
222- spin build -- -Dcpu-baseline=native -Dcpu-dispatch=none
223- spin test -m full
224- displayName: 'Build with native baseline, run full test suite'
0 commit comments