git » nvchecker.git » commit 32e8fbd

nvchecker: attempt to make *.pyc reproducible

author Chih-Hsuan Yen
2020-05-22 03:30:28 UTC
committer Chih-Hsuan Yen
2020-05-22 03:30:28 UTC
parent a8c28a26d7acc2eb7e2ce79a28d3270aabe89d4d

nvchecker: attempt to make *.pyc reproducible

PKGBUILD +3 -2

diff --git a/PKGBUILD b/PKGBUILD
index ab7c4f7..e0038c6 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -5,7 +5,7 @@ pkgname=nvchecker
 pkgver=1.6.post1
 # The commit bumps version in setup.py, and it's not tagged
 _commit=bc2fcd148d460ec9c0f0c12bc77e0326adad5546
-pkgrel=1
+pkgrel=2
 pkgdesc="New version checker for software releases"
 arch=('any')
 url="https://github.com/lilydjwg/nvchecker"
@@ -34,7 +34,8 @@ check() {
 
 package() {
   cd nvchecker-$_commit
-  python setup.py install --root="$pkgdir" --optimize=1 --skip-build
+  # use PYTHONHASHSEED=0 work around https://bugs.python.org/issue34722
+  PYTHONHASHSEED=0 python setup.py install --root="$pkgdir" --optimize=1 --skip-build
   install -Dm644 LICENSE -t "$pkgdir"/usr/share/licenses/$pkgname
 }