Skip to content

Commit 134f83d

Browse files
committed
Because of decompyle, specialize wheel for version
1 parent bdbdff5 commit 134f83d

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

admin-tools/make-dist-newer.sh

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,18 @@ for pyversion in $PYVERSIONS; do
3232
first_two_dot=$(echo $pyversion | cut -d'.' -f 1-2 )
3333
first_two=$(echo $pyversion | cut -d'.' -f 1-2 | sed -e 's/\.//')
3434
rm -fr build
35+
# We can't use a universal wheel because depdencies on the decompiler changes
36+
# for 3.7 and 3.8
3537
python setup.py bdist_egg bdist_wheel
36-
# mv -v dist/${PACKAGE}-$VERSION-py${first_two_dot}.egg dist/${PACKAGE}3k-$VERSION-py${first_two_dot}.egg
37-
mv -v dist/${PACKAGE}-$VERSION-py3-none-any.whl dist/${PACKAGE}-$VERSION-py${first_two}-none-any.whl
38+
if [[ $first_two =~ py* ]]; then
39+
if [[ $first_two =~ pypy* ]]; then
40+
# For PyPy, remove the what is after the dash, e.g. pypy37-none-any.whl instead of pypy37-7-none-any.whl
41+
first_two=${first_two%-*}
42+
fi
43+
mv -v dist/${PACKAGE}-$__version__-{py3,$first_two}-none-any.whl
44+
else
45+
mv -v dist/${PACKAGE}-$__version__-{py3,py$first_two}-none-any.whl
46+
fi
3847
done
3948

4049
python ./setup.py sdist

0 commit comments

Comments
 (0)