8000 Merge pull request #17695 from mattip/pypy · numpy/numpy@1a12887 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1a12887

Browse files
authored
Merge pull request #17695 from mattip/pypy
TST: use a more standard workflow for PyPy
2 parents c96717f + 313d107 commit 1a12887

File tree

2 files changed

+27
-4
lines changed

2 files changed

+27
-4
lines changed

azure-pipelines.yml

Lines changed: 25 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -235,8 +235,31 @@ stages:
235235
pool:
236236
vmIMage: 'ubuntu-18.04'
237237
steps:
238-
- script: source tools/pypy-test.sh
239-
displayName: 'Run PyPy3 Build / Tests'
238+
- task: UsePythonVersion@0
239+
inputs:
240+
versionSpec: pypy3
241+
- script: |
242+
python -c "import sys; print(sys.version)"
243+
python -m pip install --upgrade "setuptools<49.2.0"
244+
python -m pip install urllib3
245+
python -m pip install -r test_requirements.txt
246+
basedir=$(python ./tools/openblas_support.py)
247+
sudo cp -r $basedir/lib/* /usr/local/lib
248+
sudo cp $basedir/include/* /usr/local/include
249+
sudo ldconfig /usr/local/lib
250+
displayName: 'Get OpenBLAS'
251+
- script: |
252+
python setup.py build_src --verbose-cfg bdist_wheel
253+
# do the rest in a subdirectory so 'import numpy' works
254+
pushd dist
255+
python -mpip install ./numpy*
256+
python ../tools/openblas_support.py --check_version
257+
popd
258+
displayName: 'Build, check OpenBLAS version'
259+
- script: |
260+
python runtests.py --debug-info --show-build-log -v -- -rsx \
261+
--junitxml=junit/test-results.xml --durations 10
262+
displayName: 'Test'
240263
- task: PublishTestResults@2
241264
condition: succeededOrFailed()
242265
inputs:

tools/pypy-test.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ include_dirs = $target/lib:$LIB
2828
runtime_library_dirs = $target/lib
2929
EOF
3030

31-
echo getting PyPy 3.6-v7.3.1
32-
wget -q https://downloads.python.org/pypy/pypy3.6-v7.3.1-linux64.tar.bz2 -O pypy.tar.bz2
31+
echo getting PyPy 3.6-v7.3.2
32+
wget -q https://downloads.python.org/pypy/pypy3.6-v7.3.2-linux64.tar.bz2 -O pypy.tar.bz2
3333
mkdir -p pypy3
3434
(cd pypy3; tar --strip-components=1 -xf ../pypy.tar.bz2)
3535
pypy3/bin/pypy3 -mensurepip

0 commit comments

Comments
 (0)
0