5 : ${AUTOBUILD_INSTALL_ROOT="$HOME/builder"}
7 rm -rf MANIFEST dist build
10 python2 setup.py sdist
12 python2 setup.py build
14 python2 setup.py
install --root="$AUTOBUILD_INSTALL_ROOT"
16 if test -f /usr
/bin
/python3
; then
17 python3 setup.py build
19 python3 setup.py
install --root="$AUTOBUILD_INSTALL_ROOT"
22 type -p /usr
/bin
/rpmbuild
> /dev
/null
2>&1 ||
exit 0
24 if [ -n "$AUTOBUILD_COUNTER" ]; then
25 EXTRA_RELEASE
=".auto$AUTOBUILD_COUNTER"
28 EXTRA_RELEASE
=".$USER$NOW"
30 rpmbuild
--nodeps --define "extra_release $EXTRA_RELEASE" -ta --clean dist
/*.
tar.gz