File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
3847done
3948
4049python ./setup.py sdist
You can’t perform that action at this time.
0 commit comments