There was an error while loading. Please reload this page.
2 parents e8e8942 + 77e4240 commit 25bf5adCopy full SHA for 25bf5ad
1 file changed
.github/workflows/cibuildwheel.yml
@@ -81,12 +81,13 @@ jobs:
81
pypy -m pip install -r test_requirements.txt build
82
pypy -m pytest vmprof -v || FAILED=true
83
pypy -m pytest jitlog -v || FAILED=true
84
- if [ "FAILED" == true ]; then exit 1; fi
85
- # The wheel name is something like
86
- # vmprof-0.4.15-py3-none-any.whl
87
- # when it should be
88
- # vmprof-0.4.15-pp3-none-any.whl
89
- rename 's/py3/pp3/' vmprof-*.whl
+ if [ "$FAILED" == true ]; then exit 1; fi
+ # The wheel is pure python and comes out as
+ # vmprof-*-py3-none-any.whl
+ # which pip would also pick on CPython. Tag it for this PyPy
+ # version instead
+ TAG=$(pypy -c "import sys; print('pp%d%d' % sys.version_info[:2])")
90
+ rename "s/py3-none-any/$TAG-none-any/" vmprof-*.whl
91
92
- name: Build sdist
93
run: |
0 commit comments