[arch-commits] Commit in python-hyperlink/trunk (PKGBUILD)
Allan McRae
allan at archlinux.org
Sun May 31 09:21:08 UTC 2020
Date: Sunday, May 31, 2020 @ 09:21:06
Author: allan
Revision: 387956
upgpkg: python-hyperlink 19.0.0-5: fix reproducibility of .pyc files
Modified:
python-hyperlink/trunk/PKGBUILD
----------+
PKGBUILD | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2020-05-31 05:56:22 UTC (rev 387955)
+++ PKGBUILD 2020-05-31 09:21:06 UTC (rev 387956)
@@ -3,7 +3,7 @@
pkgbase=python-hyperlink
pkgname=('python-hyperlink' 'python2-hyperlink')
pkgver=19.0.0
-pkgrel=4
+pkgrel=5
pkgdesc='A featureful, correct URL for Python'
arch=('any')
license=('BSD')
@@ -37,6 +37,10 @@
depends=('python-idna')
cd hyperlink-$pkgver
+
+ # reproducible .pyc files
+ export PYTHONHASHSEED=0
+
python setup.py install --root="$pkgdir" --optimize=1
install -D -m644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
More information about the arch-commits
mailing list