diff options
| author | Daniel P. Berrange <berrange@redhat.com> | 2013-11-12 18:21:57 +0000 |
|---|---|---|
| committer | Daniel P. Berrange <berrange@redhat.com> | 2013-11-22 14:45:47 +0000 |
| commit | ebe519a6a3c324d9f9d6e10a5f829cea66211109 (patch) | |
| tree | 4d7bbe7df4608b7546638c4867a9cd9714f67204 /autobuild.sh | |
| parent | b75e76a30e075839c47cdc01eac7b69a8843abb5 (diff) | |
| download | libvirt-python-v8-ebe519a6a3c324d9f9d6e10a5f829cea66211109.tar.gz libvirt-python-v8-ebe519a6a3c324d9f9d6e10a5f829cea66211109.tar.xz libvirt-python-v8-ebe519a6a3c324d9f9d6e10a5f829cea66211109.zip | |
Setup distutils build system
Create a setup.py for building libvirt python code and add
supporting files
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'autobuild.sh')
| -rwxr-xr-x | autobuild.sh | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/autobuild.sh b/autobuild.sh new file mode 100755 index 0000000..b3beaf1 --- /dev/null +++ b/autobuild.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +set -ve + +: ${AUTOBUILD_INSTALL_ROOT="$HOME/builder"} + +rm -rf MANIFEST dist build + + +python setup.py sdist + +python setup.py build +python setup.py test +python setup.py install --root="$AUTOBUILD_INSTALL_ROOT" + +type -p /usr/bin/rpmbuild > /dev/null 2>&1 || exit 0 + +if [ -n "$AUTOBUILD_COUNTER" ]; then + EXTRA_RELEASE=".auto$AUTOBUILD_COUNTER" +else + NOW=`date +"%s"` + EXTRA_RELEASE=".$USER$NOW" +fi +rpmbuild --nodeps --define "extra_release $EXTRA_RELEASE" -ta --clean dist/*.tar.gz |
