You've already forked python-uncompyle6
mirror of
https://github.com/rocky/python-uncompyle6.git
synced 2025-08-03 00:45:53 +08:00
40 lines
749 B
Bash
Executable File
40 lines
749 B
Bash
Executable File
#!/bin/bash
|
|
PACKAGE=uncompyle6
|
|
|
|
# FIXME put some of the below in a common routine
|
|
function finish {
|
|
cd $owd
|
|
}
|
|
owd=$(pwd)
|
|
trap finish EXIT
|
|
|
|
cd $(dirname ${BASH_SOURCE[0]})
|
|
if ! source ./pyenv-older-versions ; then
|
|
exit $?
|
|
fi
|
|
if ! source ./setup-python-2.4.sh ; then
|
|
exit $?
|
|
fi
|
|
|
|
cd ..
|
|
source $PACKAGE/version.py
|
|
echo $VERSION
|
|
|
|
for pyversion in $PYVERSIONS; do
|
|
if ! pyenv local $pyversion ; then
|
|
exit $?
|
|
fi
|
|
|
|
rm -fr build
|
|
python setup.py bdist_egg
|
|
done
|
|
|
|
# Pypi can only have one source tarball.
|
|
# Tarballs can get created from the above setup, so make sure to remove them since we want
|
|
# the tarball from master.
|
|
|
|
tarball=dist/${PACKAGE}-$VERSION-tar.gz
|
|
if [[ -f $tarball ]]; then
|
|
rm -v dist/${PACKAGE}-$VERSION-tar.gz
|
|
fi
|