Re: [libvirt] [jenkins-ci PATCH 1/5] jobs: Call rpmbuild explicitly for Python projects

2018-08-20 Thread Erik Skultety
On Mon, Aug 20, 2018 at 04:37:13PM +0200, Andrea Bolognani wrote: > On Mon, 2018-08-20 at 16:01 +0200, Erik Skultety wrote: > > On Fri, Aug 10, 2018 at 03:37:41PM +0200, Andrea Bolognani wrote: > > > - $PYTHON ./setup.py rpm > > > + rm -f dist/*.tar.{{ archive_format }} > > > +

Re: [libvirt] [jenkins-ci PATCH 1/5] jobs: Call rpmbuild explicitly for Python projects

2018-08-20 Thread Andrea Bolognani
On Mon, 2018-08-20 at 16:01 +0200, Erik Skultety wrote: > On Fri, Aug 10, 2018 at 03:37:41PM +0200, Andrea Bolognani wrote: > > - $PYTHON ./setup.py rpm > > + rm -f dist/*.tar.{{ archive_format }} > > + $PYTHON ./setup.py sdist > > + rpmbuild --clean --define

Re: [libvirt] [jenkins-ci PATCH 1/5] jobs: Call rpmbuild explicitly for Python projects

2018-08-20 Thread Erik Skultety
On Fri, Aug 10, 2018 at 03:37:41PM +0200, Andrea Bolognani wrote: > Instead of using the custom 'rpm' target of setup.py, > generate a dist archive using the 'sdist' target and then > call rpmbuild ourselves: this way we can define _topdir > and stop artifacts from ending up in ~/rpmbuild. > >

[libvirt] [jenkins-ci PATCH 1/5] jobs: Call rpmbuild explicitly for Python projects

2018-08-10 Thread Andrea Bolognani
Instead of using the custom 'rpm' target of setup.py, generate a dist archive using the 'sdist' target and then call rpmbuild ourselves: this way we can define _topdir and stop artifacts from ending up in ~/rpmbuild. Signed-off-by: Andrea Bolognani --- jobs/python-distutils.yaml | 4 +++- 1