mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2024-11-23 13:09:49 +00:00
39 lines
823 B
Bash
Executable File
39 lines
823 B
Bash
Executable File
#!/bin/bash
|
|
PACKAGE=uncompyle6
|
|
|
|
# FIXME put some of the below in a common routine
|
|
function finish {
|
|
cd $owd
|
|
}
|
|
|
|
cd $(dirname ${BASH_SOURCE[0]})
|
|
owd=$(pwd)
|
|
trap finish EXIT
|
|
|
|
if ! source ./pyenv-newest-versions ; then
|
|
exit $?
|
|
fi
|
|
if ! source ./setup-master.sh ; then
|
|
exit $?
|
|
fi
|
|
|
|
cd ..
|
|
source $PACKAGE/version.py
|
|
echo $__version__
|
|
|
|
for pyversion in $PYVERSIONS; do
|
|
if ! pyenv local $pyversion ; then
|
|
exit $?
|
|
fi
|
|
# pip bdist_egg create too-general wheels. So
|
|
# we narrow that by moving the generated wheel.
|
|
|
|
# Pick out first two number of version, e.g. 3.5.1 -> 35
|
|
first_two=$(echo $pyversion | cut -d'.' -f 1-2 | sed -e 's/\.//')
|
|
rm -fr build
|
|
python setup.py bdist_egg bdist_wheel
|
|
mv -v dist/${PACKAGE}-$__version__-{py2.py3,py$first_two}-none-any.whl
|
|
done
|
|
|
|
python ./setup.py sdist
|