[arch-commits] Commit in python-suds/trunk (PKGBUILD)

David Runge dvzrv at archlinux.org
Mon Sep 3 19:52:49 UTC 2018


    Date: Monday, September 3, 2018 @ 19:52:48
  Author: dvzrv
Revision: 376454

upgpkg: python-suds 0.6-3

Removing unit tests from package (FS#57562).

Modified:
  python-suds/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-09-03 19:35:23 UTC (rev 376453)
+++ PKGBUILD	2018-09-03 19:52:48 UTC (rev 376454)
@@ -5,7 +5,7 @@
 pkgbase=python-suds
 pkgname=(python-suds python2-suds)
 pkgver=0.6
-pkgrel=2
+pkgrel=3
 pkgdesc="A lightweight SOAP python client"
 arch=('any')
 url="https://bitbucket.org/jurko/suds"
@@ -32,6 +32,9 @@
 
   cd $pkgbase-$pkgver
   python setup.py install --root="$pkgdir" -O1
+  # https://bugs.archlinux.org/task/57562
+  local _py3_ver=$(python --version | cut -d " " -f2)
+  rm -rf "${pkgdir}/usr/lib/python${_py3_ver%"."*}/site-packages/tests"
 }
 
 package_python2-suds() {
@@ -39,6 +42,9 @@
 
   cd $pkgbase-$pkgver-py2
   python2 setup.py install --root="$pkgdir" -O1
+  # https://bugs.archlinux.org/task/57562
+  local _py2_ver=$(python2 -c "import sys; print(str(sys.version_info.major)+'.'+str(sys.version_info.minor))")
+  rm -rf "${pkgdir}/usr/lib/python${_py2_ver}/site-packages/tests"
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list