Date: Sunday, May 31, 2020 @ 05:19:33 Author: allan Revision: 387952 upgpkg: python-cffi 1.14.0-3: fix reproducibility when check() is not run
Modified: python-cffi/trunk/PKGBUILD ----------+ PKGBUILD | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) Modified: PKGBUILD =================================================================== --- PKGBUILD 2020-05-31 03:49:09 UTC (rev 387951) +++ PKGBUILD 2020-05-31 05:19:33 UTC (rev 387952) @@ -4,7 +4,7 @@ pkgbase=python-cffi pkgname=(python-cffi python2-cffi) pkgver=1.14.0 -pkgrel=2 +pkgrel=3 pkgdesc="Foreign Function Interface for Python calling C code" arch=('x86_64') url="https://cffi.readthedocs.org/" @@ -39,6 +39,10 @@ depends=('python-pycparser') cd cffi-$pkgver + + # remove files created during check() for reproducible SOURCES.txt + rm -rf testing/cffi{0,1}/__pycache__/ + python setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE } @@ -47,6 +51,10 @@ depends=('python2-pycparser') cd cffi-$pkgver-py2 + + # remove files created during check() for reproducible SOURCES.txt + rm -rf testing/cffi{0,1}/__pycache__/ + python2 setup.py install --root="$pkgdir" --optimize=1 install -Dm644 LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE }