Date: Saturday, December 12, 2020 @ 16:46:10 Author: jelle Revision: 773473
Make atom really reproducible with repro Modified: python-atom/trunk/PKGBUILD ----------+ PKGBUILD | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-12-12 16:46:03 UTC (rev 773472) +++ PKGBUILD 2020-12-12 16:46:10 UTC (rev 773473) @@ -3,7 +3,7 @@ _name=atom pkgname=python-atom pkgver=0.6.0 -pkgrel=2 +pkgrel=3 pkgdesc='Memory efficient Python objects' arch=(x86_64) url='https://github.com/nucleic/atom' @@ -15,7 +15,7 @@ build() { cd ${_name}-${pkgver} - PYTHONHASHSEED=1 python setup.py build + python setup.py build } check() { @@ -22,11 +22,11 @@ cd ${_name}-${pkgver} local python_version=$(python -c 'import sys; print(".".join(map(str, sys.version_info[:2])))') - PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" pytest + PYTHONDONTWRITEBYTECODE=1 PYTHONPATH="$PWD/build/lib.linux-$CARCH-${python_version}" pytest } package() { cd ${_name}-${pkgver} - python setup.py install -O1 --root="${pkgdir}" --skip-build + PYTHONHASHSEED=0 python setup.py install -O1 --root="${pkgdir}" --skip-build install -D -m644 LICENSE "$pkgdir/usr/share/licenses/$pkgname/LICENSE" }
