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

Thore Bödecker foxxx0 at gemini.archlinux.org
Fri Sep 3 08:38:30 UTC 2021


    Date: Friday, September 3, 2021 @ 08:38:30
  Author: foxxx0
Revision: 1010647

upgpkg: python-pyroute2 0.5.19-3

fix version info and build process

While solving the issue with the tests being included in the package,
I had kept some preparations for their 0.6.x series that I unfortunately
did not revert for the 0.5.19 fix.
This resulted in a somewhat broken 0.5.19-2 package. :(

Modified:
  python-pyroute2/trunk/PKGBUILD

----------+
 PKGBUILD |   24 +++++++++++-------------
 1 file changed, 11 insertions(+), 13 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2021-09-03 06:52:20 UTC (rev 1010646)
+++ PKGBUILD	2021-09-03 08:38:30 UTC (rev 1010647)
@@ -7,40 +7,38 @@
 pkgname=("python-${_pkgbase}")
 pkgdesc="A pure Python netlink and Linux network configuration library"
 pkgver=0.5.19
-pkgrel=2
+pkgrel=3
 arch=('any')
 url="https://docs.pyroute2.org/"
 license=('GPL2' 'Apache')
 depends=('python')
 makedepends=('python' 'python-setuptools' 'python-setuptools-scm' 'python-sphinx' 'git' 'python-aafigure' 'twine')
-#source=("https://files.pythonhosted.org/packages/source/${_pkgbase:0:1}/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
-source=("${_pkgbase}-${pkgver}.tar.gz::https://github.com/svinota/${_pkgbase}/archive/${pkgver}.tar.gz"
-        'fix_sphinx_css.patch')
-sha512sums=('19b0acbff17415acad20a214e0622ca9a3fc51b92e603ab15663ea7e8da290fc0b2033aeca1c20200307e34173802f89998151f77d5bcfc5f87eb8b42ba591ce'
-            '18be191800ccebfb31fc310b1d0185bd221ec6f528569a6418fba61cdf9ed0b7b8f309c92b50cdb15774d45d0d8d4efa7a6d855b185099b2a94c0bbefa063b86')
+source=("https://files.pythonhosted.org/packages/source/${_pkgbase:0:1}/${_pkgbase}/${_pkgbase}-${pkgver}.tar.gz")
+# source=("${_pkgbase}-${pkgver}.tar.gz::https://github.com/svinota/${_pkgbase}/archive/${pkgver}.tar.gz"
+#        'fix_sphinx_css.patch')
+sha512sums=('bd60e2adf59b8438ff4f6abf2d41cf18eb60dcef3072577648488db45ffe89bd9c7207c4eccc38eb9256533ea2950e7f20b82ae4940b1207ba71d0f261e83f6d')
 
 prepare() {
   cd "${srcdir}/${_pkgbase}-${pkgver}"
-  patch -p1 -N -i "${srcdir}/fix_sphinx_css.patch"
+  :
 }
 
 build() {
   cd "${srcdir}/${_pkgbase}-${pkgver}"
-  make dist
-  make docs
+  python setup.py build
 }
 
 check() {
   cd "${srcdir}/${_pkgbase}-${pkgver}"
-  make test
+  python setup.py check
 }
 
 package() {
   cd "${srcdir}/${_pkgbase}-${pkgver}"
-  make install root="${pkgdir}/"
+  python setup.py install --root="${pkgdir}/" --optimize=1
   # Tests get installed into the package for some reason
-  PY_MAJ_MIN="$(python -c 'import sys; print(f"{sys.version_info.major}.{sys.version_info.minor}")')"
-  rm -rf "${pkgdir}/usr/lib/python${PY_MAJ_MIN}/site-packages/tests"
+  PYTHON_STDLIB="$(python -c "from sysconfig import get_path; print(get_path('stdlib'))")"
+  rm -rf "${pkgdir%/}/${PYTHON_STDLIB#/}/site-packages/tests"
 }
 
 # vim:set ts=2 sw=2 et:



More information about the arch-commits mailing list