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

Jonas Witschel diabonas at archlinux.org
Wed Jul 22 13:56:05 UTC 2020


    Date: Wednesday, July 22, 2020 @ 13:56:05
  Author: diabonas
Revision: 664836

upgpkg: python-pycryptodome 3.9.8-2: improve reproducibility of pyc files

Use a fixed PYTHONHASHSEED to generate deterministic bytecode files and avoid
recompiling the bytecode files in check() since that embeds a different build
path into the file.

Modified:
  python-pycryptodome/trunk/PKGBUILD

----------+
 PKGBUILD |    8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-07-22 13:06:19 UTC (rev 664835)
+++ PKGBUILD	2020-07-22 13:56:05 UTC (rev 664836)
@@ -4,7 +4,7 @@
 pkgbase=python-pycryptodome
 pkgname=('python-pycryptodome' 'python2-pycryptodome')
 pkgver=3.9.8
-pkgrel=1
+pkgrel=2
 license=('BSD')
 arch=('x86_64')
 url='https://www.pycryptodome.org/'
@@ -17,6 +17,8 @@
 }
 
 build() {
+  export PYTHONHASHSEED=0
+
   cd "$srcdir/pycryptodome-$pkgver"
   python setup.py build
 
@@ -26,10 +28,10 @@
 
 check() {
   cd "$srcdir/pycryptodome-$pkgver"
-  python setup.py test
+  python -B setup.py test
 
   cd "$srcdir/pycryptodome-$pkgver-python2"
-  python2 setup.py test
+  python2 -B setup.py test
 }
 
 package_python-pycryptodome() {



More information about the arch-commits mailing list