git » python-tornado.git » commit d0e6431

make pyc files reproducible

author Jonas Witschel
2020-07-12 13:54:01 UTC
committer Jonas Witschel
2020-07-12 13:54:01 UTC
parent 31a3fbe7028efe614c254eef6c443ce3df4aa8c1

make pyc files reproducible

Ensure that the package is reproducible by making sure that the order of
elements in sets and dictionaries in the compiled Python files is deterministic.

PKGBUILD +2 -1

diff --git a/PKGBUILD b/PKGBUILD
index ab5126e..69f9792 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
 
 pkgname=python-tornado
 pkgver=6.0.4
-pkgrel=1
+pkgrel=2
 pkgdesc='open source version of the scalable, non-blocking web server and tools'
 arch=('x86_64')
 url='https://www.tornadoweb.org/'
@@ -21,6 +21,7 @@ export TORNADO_EXTENSION=1
 
 build() {
   cd tornado-$pkgver
+  export PYTHONHASHSEED=0
   python setup.py build
 }