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

Allan McRae allan at archlinux.org
Sun May 31 05:56:06 UTC 2020


    Date: Sunday, May 31, 2020 @ 05:56:06
  Author: allan
Revision: 387954

upgpkg: django 3.0.6-2: fix reproducibility of .pyc files

Modified:
  django/trunk/PKGBUILD

----------+
 PKGBUILD |    6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2020-05-31 05:19:51 UTC (rev 387953)
+++ PKGBUILD	2020-05-31 05:56:06 UTC (rev 387954)
@@ -5,7 +5,7 @@
 pkgbase=django
 pkgname=('python-django')
 pkgver=3.0.6
-pkgrel=1
+pkgrel=2
 pkgdesc="A high-level Python Web framework that encourages rapid development and clean design"
 arch=('any')
 license=('BSD')
@@ -24,6 +24,10 @@
 
 package_python-django() {
   cd "$srcdir/Django-$pkgver"
+
+  # fix reproducibility of .pyc files
+  export PYTHONHASHSEED=0
+
   python setup.py install --root="$pkgdir" --optimize=1
 
   ln -s django-admin.py "$pkgdir"/usr/bin/django-admin3.py


More information about the arch-commits mailing list