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

Chih-Hsuan Yen yan12125 at archlinux.org
Fri Jul 10 09:06:29 UTC 2020


    Date: Friday, July 10, 2020 @ 09:06:29
  Author: yan12125
Revision: 663067

upgpkg: python-snappy 0.5.4-2; try to make it reproducible

Modified:
  python-snappy/trunk/PKGBUILD

----------+
 PKGBUILD |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-10 08:27:31 UTC (rev 663066)
+++ PKGBUILD	2020-07-10 09:06:29 UTC (rev 663067)
@@ -3,7 +3,7 @@
 
 pkgname=python-snappy
 pkgver=0.5.4
-pkgrel=1
+pkgrel=2
 pkgdesc='Python bindings for the snappy compression library.'
 url='https://github.com/andrix/python-snappy'
 depends=(python snappy)
@@ -30,7 +30,9 @@
   cd $pkgname-$pkgver
   pyver=$(python -c "import sys; print('{}.{}'.format(*sys.version_info[:2]))")
   export PYTHONPATH="$PWD/build/lib.linux-$CARCH-$pyver"
-  pytest -v tests --ignore=tests/test_snappy_cffi.py -k 'not test_snappy_cffi_enum'
+  # Avoid writing .pyc files in check(), or packaging with --nocheck cannot reproduce
+  # packages built with check() as .pyc files created in check() embed $srcdir
+  PYTHONDONTWRITEBYTECODE=1 pytest -v tests --ignore=tests/test_snappy_cffi.py -k 'not test_snappy_cffi_enum'
 }
 
 package() {



More information about the arch-commits mailing list