diff options
author | Guido Günther <agx@sigxcpu.org> | 2016-09-27 08:38:00 +0200 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2016-09-27 08:38:00 +0200 |
commit | 74c7bc0d3613bca9e992bfb738614dbe4c3ce780 (patch) | |
tree | feea7da43c7c0e21e4f03437b068701edb5f6713 | |
parent | 3e26d0279eb0ce0e2c9ef1e7d518eaf86356db85 (diff) |
autopkgtest: Skip build if setuptools is not available
-rwxr-xr-x | debian/tests/smoke-rpm | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/debian/tests/smoke-rpm b/debian/tests/smoke-rpm index 019f167c..75b47985 100755 --- a/debian/tests/smoke-rpm +++ b/debian/tests/smoke-rpm @@ -13,8 +13,10 @@ cat <<EOF >> ~/.rpmmacros %python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; import sys; sys.stdout.write(get_python_lib(1).replace('dist-', 'site-'))") EOF -# Build an RPM of ourselfes -gbp buildpackage-rpm --git-packaging-dir=packaging/ -bb --nodeps - -rm -r .git ~/.rpmmacros +gbp buildpackage-rpm --help +# Build an RPM of ourselfes if build-deps are available +if python -c "import setuptools"; then + gbp buildpackage-rpm --git-packaging-dir=packaging/ -bb --nodeps + rm -r .git ~/.rpmmacros +fi |